mirror of
https://github.com/SrIzan10/starters.git
synced 2026-05-01 11:05:16 +00:00
23 lines
374 B
TypeScript
23 lines
374 B
TypeScript
import { ReactNode } from "react"
|
|
import { Head } from "blitz"
|
|
|
|
type LayoutProps = {
|
|
title?: string
|
|
children: ReactNode
|
|
}
|
|
|
|
const Layout = ({ title, children }: LayoutProps) => {
|
|
return (
|
|
<>
|
|
<Head>
|
|
<title>{title || "blitzjs"}</title>
|
|
<link rel="icon" href="/favicon.ico" />
|
|
</Head>
|
|
|
|
{children}
|
|
</>
|
|
)
|
|
}
|
|
|
|
export default Layout
|