You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.1 KiB
46 lines
1.1 KiB
import type { Metadata } from "next"; |
|
import { Geist, Geist_Mono } from "next/font/google"; |
|
import "./globals.css"; |
|
|
|
const geistSans = Geist({ |
|
variable: "--font-geist-sans", |
|
subsets: ["latin"], |
|
}); |
|
|
|
const geistMono = Geist_Mono({ |
|
variable: "--font-geist-mono", |
|
subsets: ["latin"], |
|
}); |
|
|
|
import Sidebar from "@/components/Sidebar"; |
|
import CopilotProvider from "@/components/CopilotProvider"; |
|
import AuthGuard from "@/components/AuthGuard"; |
|
|
|
export const metadata: Metadata = { |
|
title: "AI-Native CRM", |
|
description: "Generated by CopilotKit", |
|
}; |
|
|
|
export default function RootLayout({ |
|
children, |
|
}: Readonly<{ |
|
children: React.ReactNode; |
|
}>) { |
|
return ( |
|
<html |
|
lang="zh" |
|
className={`${geistSans.variable} ${geistMono.variable} h-full antialiased`} |
|
> |
|
<body className="flex h-screen overflow-hidden bg-slate-50 relative"> |
|
<AuthGuard> |
|
<CopilotProvider> |
|
<Sidebar /> |
|
<div className="flex-1 overflow-y-auto"> |
|
{children} |
|
</div> |
|
</CopilotProvider> |
|
</AuthGuard> |
|
</body> |
|
</html> |
|
); |
|
}
|
|
|