Use Layout component
This commit is contained in:
25
components/Blog/Layout.tsx
Normal file
25
components/Blog/Layout.tsx
Normal file
@ -0,0 +1,25 @@
|
||||
import type { NextPage } from "next";
|
||||
import Head from "next/head";
|
||||
import Navigation from "./Navigation";
|
||||
|
||||
interface ILayoutProps {
|
||||
title?: string;
|
||||
}
|
||||
|
||||
const Layout: NextPage<ILayoutProps> = ({ title, children }) => {
|
||||
return <>
|
||||
<Head>
|
||||
<title>{title ?? "c0ntroller.de"}</title>
|
||||
</Head>
|
||||
<div id={"blogBody"}>
|
||||
<header>
|
||||
<Navigation />
|
||||
</header>
|
||||
<main>
|
||||
{ children }
|
||||
</main>
|
||||
</div>
|
||||
</>;
|
||||
};
|
||||
|
||||
export default Layout;
|
Reference in New Issue
Block a user