Raw
1 import clsx from "clsx"
2 import React from "react"
3 import { GoogleAnalytics } from "@next/third-parties/google"
4
5 export type BareboneLayoutProps = {
6 htmlClassName?: string
7 children: React.ReactNode
8 gaId?: string
9 }
10
11 export const BareboneLayout = ({
12 htmlClassName,
13 children,
14 gaId,
15 }: BareboneLayoutProps) => {
16 return (
17 <html lang="en" className={clsx("h-full w-full", htmlClassName)}>
18 <head />
19 {children}
20 {gaId && <GoogleAnalytics gaId={gaId} />}
21 </html>
22 )
23 }