|
import { Inter } from "next/font/google"; |
|
import "./globals.css"; |
|
import { FilmProvider } from "@/context/FilmContext"; |
|
import { config } from "@fortawesome/fontawesome-svg-core"; |
|
import "@fortawesome/fontawesome-svg-core/styles.css"; |
|
import Header from "@/components/Header"; |
|
import { TvShowsProvider } from "@/context/TvshowContext"; |
|
|
|
config.autoAddCss = true; |
|
const inter = Inter({ subsets: ["latin"] }); |
|
|
|
export default function RootLayout({ children }) { |
|
return ( |
|
<html lang="en"> |
|
<body className={inter.className}> |
|
<header> |
|
<link rel="manifest" href="webmanifest.json"/> |
|
<Header /> |
|
</header> |
|
<div className="app-container"> |
|
<TvShowsProvider> |
|
<FilmProvider>{children}</FilmProvider> |
|
</TvShowsProvider> |
|
</div> |
|
</body> |
|
</html> |
|
); |
|
} |
|
|