import { createServerComponentSupabaseClient } from "@supabase/auth-helpers-nextjs"; import { Analytics as VercelAnalytics } from "@vercel/analytics/react"; import { cookies, headers } from "next/headers"; import { ToastProvider } from "@/lib/components/ui/Toast"; import { SupabaseProvider } from "@/lib/context/SupabaseProvider"; import { App } from "./App"; import "./globals.css"; import styles from "./layout.module.scss"; 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} ); }; export default RootLayout;