import React, { ReactNode } from 'react'; import type { Metadata, Viewport } from 'next'; import { cookies } from 'next/headers'; import Header from '@/components/Header'; import Providers from '@/providers'; import { font } from '@/styles/font'; import '@/styles/index.css'; export const metadata: Metadata = { title: 'Movie advisor | Discover Your Next Favorite Movie', description: 'Explore a diverse selection of movies with Movie Advisor. Get random movie recommendations and find out top-rated, popular, and user-favorite films.' }; export const viewport: Viewport = { themeColor: 'black', width: 'device-width', initialScale: 1, maximumScale: 1, userScalable: false }; const RootLayout = ({ children }: { children: ReactNode }) => { const theme = cookies().get('theme')?.value as Theme; return (
{children}
); }; export default RootLayout;