taxonomy/app/layout.tsx

40 lines
884 B
TypeScript
Raw Permalink Normal View History

import { Inter as FontSans } from "@next/font/google"
2022-10-26 13:18:06 +00:00
import "@/styles/globals.css"
import { cn } from "@/lib/utils"
2022-11-06 10:40:19 +00:00
import { Toaster } from "@/ui/toast"
2022-11-05 07:44:01 +00:00
import { Help } from "@/components/help"
import { Analytics } from "@/components/analytics"
import { TailwindIndicator } from "@/components/tailwind-indicator"
const fontSans = FontSans({
subsets: ["latin"],
variable: "--font-inter",
})
2022-10-26 13:18:06 +00:00
interface RootLayoutProps {
children: React.ReactNode
}
2022-11-23 15:38:07 +00:00
function RootLayout({ children }: RootLayoutProps) {
2022-10-26 13:18:06 +00:00
return (
<html
lang="en"
className={cn(
"bg-white font-sans text-slate-900 antialiased",
fontSans.variable
)}
>
<head />
2022-10-26 13:18:06 +00:00
<body className="min-h-screen">
{children}
2022-11-05 07:44:01 +00:00
<Analytics />
<Help />
2022-10-26 13:18:06 +00:00
<Toaster position="bottom-right" />
<TailwindIndicator />
2022-10-26 13:18:06 +00:00
</body>
</html>
)
}