Files
emaui/node_modules/@mantine/hooks/cjs/use-window-event/use-window-event.cjs
2026-05-29 15:23:46 +03:00

15 lines
375 B
JavaScript

'use client';
'use strict';
var React = require('react');
function useWindowEvent(type, listener, options) {
React.useEffect(() => {
window.addEventListener(type, listener, options);
return () => window.removeEventListener(type, listener, options);
}, [type, listener]);
}
exports.useWindowEvent = useWindowEvent;
//# sourceMappingURL=use-window-event.cjs.map