mirror of
https://github.com/docmost/docmost.git
synced 2026-05-07 06:23:06 +08:00
33 lines
807 B
TypeScript
33 lines
807 B
TypeScript
import './globals.css'
|
|
import type { Metadata } from 'next'
|
|
import { Inter } from 'next/font/google'
|
|
import { cn } from "@/lib/utils";
|
|
import { ThemeProvider } from "@/components/providers/theme-provider";
|
|
import { Toaster } from "@/components/ui/toaster";
|
|
|
|
const inter = Inter({ subsets: ['latin'] })
|
|
|
|
export const metadata: Metadata = {
|
|
title: 'Create Next App',
|
|
description: 'Generated by create next app',
|
|
}
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode
|
|
}) {
|
|
|
|
return (
|
|
<html lang="en" suppressHydrationWarning>
|
|
<body className={cn("min-h-screen bg-background antialiased", inter.className)}>
|
|
<ThemeProvider attribute="class" defaultTheme="system" enableSystem>
|
|
{children}
|
|
<Toaster />
|
|
</ThemeProvider>
|
|
</body>
|
|
</html>
|
|
)
|
|
|
|
}
|