24 lines
498 B
TypeScript
24 lines
498 B
TypeScript
import clsx from "clsx"
|
|
import React from "react"
|
|
import { GoogleAnalytics } from "@next/third-parties/google"
|
|
|
|
export type BareboneLayoutProps = {
|
|
htmlClassName?: string
|
|
children: React.ReactNode
|
|
gaId?: string
|
|
}
|
|
|
|
export const BareboneLayout = ({
|
|
htmlClassName,
|
|
children,
|
|
gaId,
|
|
}: BareboneLayoutProps) => {
|
|
return (
|
|
<html lang="en" className={clsx("h-full w-full", htmlClassName)}>
|
|
<head />
|
|
{children}
|
|
<GoogleAnalytics gaId={gaId || "temp"} />
|
|
</html>
|
|
)
|
|
}
|