"use client";
let react = require("react");
//#region packages/@mantine/hooks/src/use-document-visibility/use-document-visibility.ts
function useDocumentVisibility() {
	const [documentVisibility, setDocumentVisibility] = (0, react.useState)("visible");
	(0, react.useEffect)(() => {
		setDocumentVisibility(document.visibilityState);
		const listener = () => setDocumentVisibility(document.visibilityState);
		document.addEventListener("visibilitychange", listener);
		return () => document.removeEventListener("visibilitychange", listener);
	}, []);
	return documentVisibility;
}
//#endregion
exports.useDocumentVisibility = useDocumentVisibility;

//# sourceMappingURL=use-document-visibility.cjs.map