Files
medusa-store/www/packages/docs-ui/src/layouts/barebone.tsx
2024-12-10 13:16:12 +02:00

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>
)
}