File size: 803 Bytes
21bbe59
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
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>
  )
}