import React from 'react'; import Head from 'next/head'; import { useRouter } from 'next/router'; import Header from 'components/layout/Header'; import Footer from 'components/layout/Footer'; export default function Layout({ title, children, header = true, footer = true }) { const { basePath } = useRouter(); return ( <> umami{title && ` - ${title}`} {header &&
}
{children}
{footer &&