32 lines
723 B
TypeScript
32 lines
723 B
TypeScript
import "./globals.css";
|
|
import type { Metadata } from "next";
|
|
import { ThemeProvider } from "@/app/components/theme-provider";
|
|
import { ReactNode } from "react";
|
|
import { jetbrainsMono } from "@/app/common/font/font";
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Paste",
|
|
description: "A simple Pastebin service",
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: ReactNode;
|
|
}>) {
|
|
return (
|
|
<html lang="en">
|
|
<body className={jetbrainsMono.className}>
|
|
<ThemeProvider
|
|
attribute="class"
|
|
defaultTheme="dark"
|
|
enableSystem
|
|
disableTransitionOnChange
|
|
>
|
|
{children}
|
|
</ThemeProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|