mirror of
https://github.com/IVJAB/adrar.redmush.laravel.git
synced 2026-11-14 17:33:22 +00:00
10 lines
285 B
TypeScript
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');
|
|
}, []);
|
|
}
|