22 lines
823 B
TypeScript
22 lines
823 B
TypeScript
import type { Metadata } from "next";
|
|||
|
|
import { Figtree } from "next/font/google";
|
||
|
|
import "./globals.css";
|
||
|
|
|
||
|
|
const figtree = Figtree({ variable: "--font-figtree", subsets: ["latin"] });
|
||
|
|
|
||
|
|
export const metadata: Metadata = {
|
||
|
|
title: "broke",
|
||
|
|
description: "Where your money went.",
|
||
|
|
};
|
||
|
|
|
||
|
|
export default function RootLayout({ children }: Readonly<{ children: React.ReactNode }>) {
|
||
|
|
return (
|
||
|
|
<html lang="en" suppressHydrationWarning>
|
||
|
|
<head>
|
||
|
|
{/* Apply the saved theme before paint; no attribute means follow the system. */}
|
||
|
|
<script dangerouslySetInnerHTML={{ __html: `try{var t=localStorage.getItem("theme");if(t==="light"||t==="dark")document.documentElement.dataset.theme=t}catch(e){}` }} />
|
||
|
|
</head>
|
||
|
|
<body className={`${figtree.variable} antialiased`}>{children}</body>
|
||
|
|
</html>
|
||
|
|
);
|
||
|
|
}
|