Files
buzz-sheet/app/layout.tsx
T
gunshiz be095ab236
CI / Verify (push) Successful in 1m8s
CI / Build immutable images and deploy (push) Has been skipped
feat(deploy): notify clients of new releases
2026-08-29 07:13:04 +00:00

48 lines
1.4 KiB
TypeScript

import type { Metadata } from "next";
import { Anuphan, Geist_Mono } from "next/font/google";
import { DeploymentUpdateNotifier } from "@/components/deployment-update-notifier";
import { Toaster } from "@/components/ui/sonner";
import { TooltipProvider } from "@/components/ui/tooltip";
import "./globals.css";
const anuphan = Anuphan({
variable: "--font-anuphan",
subsets: ["thai", "latin"],
fallback: ["Tahoma", "Arial", "sans-serif"],
});
const geistMono = Geist_Mono({
variable: "--font-geist-mono",
subsets: ["latin"],
});
export const metadata: Metadata = {
title: {
default: "Buzz Sheet — คู่มือเกม",
template: "%s | Buzz Sheet",
},
description: "คู่มือตัวละคร บิลด์ ทีม และโรเทชันที่อ่านง่ายในทุกหน้าจอ",
};
export default function RootLayout({ children }: LayoutProps<"/">) {
const deploymentId =
process.env.NEXT_DEPLOYMENT_ID?.trim() || "development";
return (
<html
lang="th"
className={`dark ${anuphan.variable} ${geistMono.variable} h-full antialiased`}
>
<body className="flex min-h-full flex-col">
<TooltipProvider>
{children}
<DeploymentUpdateNotifier deploymentId={deploymentId} />
<Toaster position="bottom-right" />
</TooltipProvider>
</body>
</html>
);
}