next-app-with-squiggle/components/Layout.tsx
2022-09-09 17:38:21 +08:00

22 lines
550 B
TypeScript

import Header from "./Header"
import Footer from "./Footer"
import Head from "next/head"
interface Props {
children: React.ReactNode
}
export default function Layout({ children }: Props) {
return (
<>
<Head>
<title>squiggle-next-template</title>
<meta name="description" content="Generated by create next app" />
<link rel="icon" href="/favicon.ico" />
</Head>
<Header />
<main>{children}</main>
<Footer />
</>
)}