Files
erika/app/layout.tsx
T

43 lines
1002 B
TypeScript

import type { Metadata } from "next";
import { Geist, Anuphan } from "next/font/google";
import "./globals.css";
import { cn } from "@/lib/utils";
const geistSans = Geist({
variable: "--font-geist-sans",
subsets: ["latin"],
});
const anuphan = Anuphan({
variable: "--font-anuphan",
subsets: ["latin", "thai"],
display: "swap",
});
export const metadata: Metadata = {
title: "Erika",
};
import { TooltipProvider } from "@/components/ui/tooltip";
import { Toaster } from "sonner";
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html
lang="en"
className={cn("h-full", "dark", "antialiased", anuphan.variable, geistSans.variable, "font-sans")}
>
<body className={`${anuphan.className} ${geistSans.className}`}>
<TooltipProvider>
<Toaster richColors closeButton position="bottom-right" theme="dark" />
{children}
</TooltipProvider>
</body>
</html>
);
}