41 lines
948 B
TypeScript
41 lines
948 B
TypeScript
import "./globals.css";
|
|
|
|
import type { Metadata } from "next";
|
|
import { Geist, Geist_Mono } from "next/font/google";
|
|
import { Navbar } from "@/components/organisms/Navbar";
|
|
import { GlobalStoreProvider } from "./store/globalStore";
|
|
|
|
const geistSans = Geist({
|
|
variable: "--font-geist-sans",
|
|
subsets: ["latin"],
|
|
});
|
|
|
|
const geistMono = Geist_Mono({
|
|
variable: "--font-geist-mono",
|
|
subsets: ["latin"],
|
|
});
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Movie List",
|
|
description: "Personal watch list and progress tracker",
|
|
};
|
|
|
|
export default async function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html lang="pl">
|
|
<body
|
|
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
|
|
>
|
|
<GlobalStoreProvider>
|
|
<Navbar />
|
|
<main className="[&>:last-child]:mb-0">{children}</main>
|
|
</GlobalStoreProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|