"use client";
import { w as s } from "../../../../_virtual/with-selector.js";
import { useContext as o } from "react";
import { RechartsReduxContext as a } from "./RechartsReduxContext.js";
var p = (e) => e, d = () => {
  var e = o(a);
  return e ? e.store.dispatch : p;
}, r = () => {
}, n = () => r, i = (e, t) => e === t;
function x(e) {
  var t = o(a);
  return s.useSyncExternalStoreWithSelector(t ? t.subscription.addNestedSub : n, t ? t.store.getState : r, t ? t.store.getState : r, t ? e : r, i);
}
export {
  d as useAppDispatch,
  x as useAppSelector
};
