Spaces:
Running
Running
| import './globals.css' | |
| import { Inter } from 'next/font/google' | |
| import { createClientComponentClient } from '@supabase/auth-helpers-nextjs' | |
| import { cookies } from 'next/headers' | |
| import AuthProvider from './auth-provider' | |
| const inter = Inter({ subsets: ['latin'] }) | |
| export const metadata = { | |
| title: 'VisionQuantech Business Suite', | |
| description: 'Enterprise SaaS Platform', | |
| } | |
| export default function RootLayout({ children }) { | |
| const cookieStore = cookies() | |
| const supabase = createClientComponentClient() | |
| return ( | |
| <html lang="en"> | |
| <body className={`${inter.className} bg-gray-50`}> | |
| <AuthProvider | |
| accessToken={cookieStore.get('vq_session')?.value} | |
| supabase={supabase} | |
| > | |
| {children} | |
| </AuthProvider> | |
| </body> | |
| </html> | |
| ) | |
| } |