File size: 627 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
import { draftMode } from "next/headers";
import { Inter } from "next/font/google";
import "@/app/globals.css";
import Navigation from "@/components/Globals/Navigation/Navigation";
import { PreviewNotice } from "@/components/Globals/PreviewNotice/PreviewNotice";
const inter = Inter({ subsets: ["latin"] });
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
const { isEnabled } = draftMode();
return (
<html lang="en">
<body className={inter.className}>
{isEnabled && <PreviewNotice />}
<Navigation />
{children}
</body>
</html>
);
}
|