import React, { ReactNode } from 'react'; import type { Metadata, Viewport } from 'next'; import { Jost } from 'next/font/google'; import { cookies } from 'next/headers'; import Header from '@/components/Header'; import Providers from '@/providers'; import '@/styles/index.css'; const title = 'Movie Advisor'; const productionUrl = `https://${process.env.NEXT_PUBLIC_VERCEL_PROJECT_PRODUCTION_URL}`; export const metadata: Metadata = { title: `${title} | Discover Your Next Favorite Movie`, description: `Explore a diverse selection of movies with ${title}. Get random movie recommendations and find out top-rated, popular, and user-favorite films.` }; export const viewport: Viewport = { width: 'device-width' }; const font = Jost({ subsets: ['latin', 'cyrillic'], weight: ['400'] }); const RootLayout = ({ children }: { children: ReactNode }) => { const theme = cookies().get('theme')?.value as Theme; return (