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-08-03 13:03:10 +00:00
|
|
|
<title>{title || "shellphone.app"}</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;
|