Files
web-probindo/resources/js/hooks/use-mobile-navigation.ts
afriadirahman 566275348c
tests / ci (push) Canceled after 0s
first commit
2026-09-28 13:52:25 +07:00

11 lines
285 B
TypeScript

import { useCallback } from 'react';
export type CleanupFn = () => void;
export function useMobileNavigation(): CleanupFn {
return useCallback(() => {
// Remove pointer-events style from body...
document.body.style.removeProperty('pointer-events');
}, []);
}