Files
ERP-core/Frontend/erp-system/app/layout.tsx
T
2026-09-30 17:06:28 +05:30

45 lines
1.1 KiB
TypeScript

import type { Metadata } from "next";
import { Inter, Geist_Mono } from "next/font/google";
import { Suspense } from "react";
import { Providers } from "@/components/providers";
import { RouteProgress } from "@/components/Layouts/RouteProgress";
import "./globals.css";
const inter = Inter({
variable: "--font-inter",
subsets: ["latin"],
});
const geistMono = Geist_Mono({
variable: "--font-geist-mono",
subsets: ["latin"],
});
export const metadata: Metadata = {
title: "Create Next App",
description: "Generated by create next app",
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html
lang="en"
className={`${inter.variable} ${geistMono.variable} h-full antialiased`}
data-scroll-behavior="smooth"
suppressHydrationWarning
>
<body className="min-h-full flex flex-col">
{/* useSearchParams needs a Suspense boundary to keep pages statically renderable. */}
<Suspense fallback={null}>
<RouteProgress />
</Suspense>
<Providers>{children}</Providers>
</body>
</html>
);
}