import React from 'react'
import './styles.css'
import { ModalProvider } from '@/components/shared/ModalContext'
import { CookieConsent } from '@/components/shared/CookieConsent'

export const metadata = {
  description: 'Rent a Tesla in Spain - your gateway to innovation and freedom',
  title: 'Tesla Capital Group',
  icons: {
    icon: '/favicon.ico',
    shortcut: '/favicon-96x96.png',
    apple: '/apple-touch-icon.png',
  },
  manifest: '/site.webmanifest',
  appleWebApp: {
    title: 'Tesla Rent',
  },
}

export default async function RootLayout(props: { children: React.ReactNode }) {
  const { children } = props

  return (
    <html lang="en">
      <body>
        {children}
        <CookieConsent />
      </body>
    </html>
  )
}
