import React, { type ReactNode, useEffect } from 'react'; export function Layout({ children }: { children: ReactNode }) { useEffect(() => { // Prevent default touch behavior const preventDefaultTouchBehavior = (e: TouchEvent) => { if (e.target instanceof HTMLElement && e.target.tagName !== 'CANVAS') { e.preventDefault(); } }; document.body.addEventListener('touchmove', preventDefaultTouchBehavior, { passive: false }); return () => { document.body.removeEventListener('touchmove', preventDefaultTouchBehavior); }; }, []); return ( <>
{children}
); }