import React__default from "react";
import useSyncExternalStoreExports from "../../../../../../_virtual/with-selector.js";
const { useDebugValue } = React__default;
const { useSyncExternalStoreWithSelector } = useSyncExternalStoreExports;
const identity = (arg) => arg;
function useStore(api, selector = identity, equalityFn) {
  const slice = useSyncExternalStoreWithSelector(
    api.subscribe,
    api.getState,
    api.getServerState || api.getInitialState,
    selector,
    equalityFn
  );
  useDebugValue(slice);
  return slice;
}
export {
  useStore
};
//# sourceMappingURL=index.js.map
