import { Background } from '@/components/background'; import { useIsMobile } from '@/hooks/use-mobile'; import { useLocation } from '@tanstack/react-router'; import type { ReactNode } from 'react'; import { Header } from './header'; interface LayoutProps { children: ReactNode; } export function Layout({ children }: LayoutProps) { const isMobile = useIsMobile(); const location = useLocation(); const isMobileHome = isMobile && location.pathname === '/'; return (
{!isMobileHome &&
}
{children}
); }