"use client";

// src/hooks/focus/useIsMounted.ts
import { useEffect, useLayoutEffect, useState } from "react";
var isClient = typeof window !== "undefined" && typeof document !== "undefined";
var useIsomorphicEffect = isClient ? useLayoutEffect : useEffect;
var useIsMounted = () => {
  const [isMounted, setIsMounted] = useState(false);
  useIsomorphicEffect(() => {
    setIsMounted(true);
    return () => {
      setIsMounted(false);
    };
  }, []);
  return isMounted;
};
export {
  useIsMounted
};
//# sourceMappingURL=useIsMounted.js.map