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 { SITE_URL, TITLE } from '@/env'; import Providers from '@/providers'; import '@/styles/index.css'; 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', initialScale: 1, viewportFit: 'cover' }; const font = Jost({ subsets: ['latin', 'cyrillic'], weight: ['400'] }); const RootLayout = ({ children }: { children: ReactNode }) => { const theme = cookies().get('theme')?.value as Theme; return (