|
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="icon" href="/favicon.ico" sizes="any" /> |
|
<Header /> |
|
</header> |
|
<div className="app-container"> |
|
<TvShowsProvider> |
|
<FilmProvider>{children}</FilmProvider> |
|
</TvShowsProvider> |
|
</div> |
|
</body> |
|
</html> |
|
); |
|
} |
|
|