import { createSignal, createEffect, onCleanup } from "solid-js";
import { useZero } from "./use-zero.js";
function useZeroOnline() {
  const zero = useZero();
  const [online, setOnline] = createSignal(zero().online);
  createEffect(() => {
    const unsubscribe = zero().onOnline(setOnline);
    onCleanup(unsubscribe);
  });
  return online;
}
export {
  useZeroOnline
};
//# sourceMappingURL=use-zero-online.js.map
