import { createServerComponentSupabaseClient } from "@supabase/auth-helpers-nextjs"; import { Analytics } from "@vercel/analytics/react"; import { Inter } from "next/font/google"; import { cookies, headers } from "next/headers"; import Footer from "@/lib/components/Footer"; import { NavBar } from "@/lib/components/NavBar"; import { ToastProvider } from "@/lib/components/ui/Toast"; import { BrainConfigProvider } from "@/lib/context/BrainConfigProvider/brain-config-provider"; import "./globals.css"; import SupabaseProvider from "./supabase-provider"; const inter = Inter({ subsets: ["latin"] }); export const metadata = { title: "Quivr - Get a Second Brain with Generative AI", description: "Quivr is your second brain in the cloud, designed to easily store and retrieve unstructured information.", }; const RootLayout = async ({ children, }: { children: React.ReactNode; }): Promise => { const supabase = createServerComponentSupabaseClient({ headers, cookies, }); const { data: { session }, } = await supabase.auth.getSession(); return (
{children}