Spaces:
Running
Running
File size: 1,410 Bytes
5012205 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import { ChatSidebar } from "@/components/chat-sidebar";
import { SidebarTrigger } from "@/components/ui/sidebar";
import { Menu } from "lucide-react";
import { Providers } from "./providers";
import "./globals.css";
const inter = Inter({ subsets: ["latin"] });
export const metadata: Metadata = {
title: "Scira MCP Chat",
description: "Scira MCP Chat is a chat interface for interacting with MCP servers.",
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en" suppressHydrationWarning>
<body className={`${inter.className}`}>
<Providers>
<div className="flex h-dvh w-full">
<ChatSidebar />
<main className="flex-1 flex flex-col relative">
<div className="absolute top-4 left-4 z-50">
<SidebarTrigger>
<button className="flex items-center justify-center h-8 w-8 bg-muted hover:bg-accent rounded-md transition-colors">
<Menu className="h-4 w-4" />
</button>
</SidebarTrigger>
</div>
<div className="flex-1 flex justify-center">
{children}
</div>
</main>
</div>
</Providers>
</body>
</html>
);
}
|