import Navigation from '@/components/Navigation' import RouteTransition from '@/components/RouteTransition' import { Card, Container, Loading } from '@nextui-org/react' import { useRouter } from 'next/router' import { Fragment, ReactNode } from 'react' /** * Types */ interface Props { initialized: boolean children: ReactNode | ReactNode[] } /** * Container */ export default function Layout({ children, initialized }: Props) { const { route } = useRouter() const shouldHideFooter = route === '/chat' return ( {initialized ? ( {children} ) : ( )} ) }