11 lines
285 B
TypeScript
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');
|
|
}, []);
|
|
}
|