mirror of
https://github.com/OpenCut-app/OpenCut.git
synced 2026-07-13 21:52:53 +02:00
46 lines
1.2 KiB
TypeScript
46 lines
1.2 KiB
TypeScript
import type { Metadata } from "next";
|
|||
|
|
import localFont from "next/font/local";
|
||
|
|
import { ThemeProvider } from "next-themes";
|
||
|
|
import { Analytics } from "@vercel/analytics/react";
|
||
|
|
import "./globals.css";
|
||
|
|
import { Toaster } from "../components/ui/sonner";
|
||
|
|
import { TooltipProvider } from "../components/ui/tooltip";
|
||
|
|
|
||
|
|
const geistSans = localFont({
|
||
|
|
src: "./fonts/GeistVF.woff",
|
||
|
|
variable: "--font-geist-sans",
|
||
|
|
weight: "100 900",
|
||
|
|
});
|
||
|
|
const geistMono = localFont({
|
||
|
|
src: "./fonts/GeistMonoVF.woff",
|
||
|
|
variable: "--font-geist-mono",
|
||
|
|
weight: "100 900",
|
||
|
|
});
|
||
|
|
|
||
|
|
export const metadata: Metadata = {
|
||
|
|
title: "Create Next App",
|
||
|
|
description: "Generated by create next app",
|
||
|
|
};
|
||
|
|
|
||
|
|
export default function RootLayout({
|
||
|
|
children,
|
||
|
|
}: Readonly<{
|
||
|
|
children: React.ReactNode;
|
||
|
|
}>) {
|
||
|
|
return (
|
||
|
|
<html lang="en" suppressHydrationWarning>
|
||
|
|
<body
|
||
|
|
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
|
||
|
|
>
|
||
|
|
<ThemeProvider attribute="class" forcedTheme="dark" enableSystem>
|
||
|
|
<TooltipProvider>
|
||
|
|
{children}
|
||
|
|
<Analytics />
|
||
|
|
<Toaster />
|
||
|
|
</TooltipProvider>
|
||
|
|
</ThemeProvider>
|
||
|
|
</body>
|
||
|
|
</html>
|
||
|
|
);
|
||
|
|
}
|