umami/components/layout/Layout.js
2021-03-26 21:50:53 -07:00

19 lines
487 B
JavaScript

import React from 'react';
import Head from 'next/head';
import Header from 'components/layout/Header';
import Footer from 'components/layout/Footer';
export default function Layout({ title, children, header = true, footer = true }) {
return (
<>
<Head>
<title>umami{title && ` - ${title}`}</title>
</Head>
{header && <Header />}
<main className="container">{children}</main>
{footer && <Footer />}
<div id="__modals" />
</>
);
}