2021-07-31 15:57:43 +00:00
|
|
|
import { ReactNode } from "react";
|
|
|
|
import { Head } from "blitz";
|
2021-07-31 14:33:18 +00:00
|
|
|
|
|
|
|
type LayoutProps = {
|
2021-07-31 15:57:43 +00:00
|
|
|
title?: string;
|
|
|
|
children: ReactNode;
|
|
|
|
};
|
2021-07-31 14:33:18 +00:00
|
|
|
|
|
|
|
const BaseLayout = ({ title, children }: LayoutProps) => {
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<Head>
|
2021-10-26 21:34:21 +00:00
|
|
|
<title>{title ? `${title} | Shellphone` : "Shellphone"}</title>
|
2021-07-31 14:33:18 +00:00
|
|
|
<link rel="icon" href="/favicon.ico" />
|
|
|
|
</Head>
|
|
|
|
|
|
|
|
{children}
|
|
|
|
</>
|
2021-07-31 15:57:43 +00:00
|
|
|
);
|
|
|
|
};
|
2021-07-31 14:33:18 +00:00
|
|
|
|
2021-07-31 15:57:43 +00:00
|
|
|
export default BaseLayout;
|