import { Container } from 'react-basics'; import Head from 'next/head'; import Header from 'components/layout/Header'; import Footer from 'components/layout/Footer'; import useLocale from 'hooks/useLocale'; import { useRouter } from 'next/router'; export default function Layout({ title, children, header = true, footer = true }) { const { dir } = useLocale(); const { basePath } = useRouter(); return ( {title ? `${title} | umami` : 'umami'} {header &&
}
{children}
{footer &&