"use client";
let react = require("react");
//#region packages/@mantine/hooks/src/use-page-leave/use-page-leave.ts
function usePageLeave(onPageLeave) {
	const onPageLeaveEvent = (0, react.useEffectEvent)(onPageLeave);
	(0, react.useEffect)(() => {
		document.documentElement.addEventListener("mouseleave", onPageLeaveEvent);
		return () => document.documentElement.removeEventListener("mouseleave", onPageLeaveEvent);
	}, []);
}
//#endregion
exports.usePageLeave = usePageLeave;

//# sourceMappingURL=use-page-leave.cjs.map