adrar.redmush.laravel/resources/js/hooks/use-mobile-navigation.ts
2026-08-17 03:49:13 +02:00

10 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');
}, []);
}