import { useSyncExternalStore } from "react";
import { useZero } from "./zero-provider.js";
function useConnectionState() {
  const zero = useZero();
  return useSyncExternalStore(
    zero.connection.state.subscribe,
    () => zero.connection.state.current,
    () => zero.connection.state.current
  );
}
export {
  useConnectionState
};
//# sourceMappingURL=use-connection-state.js.map
