2024-11-24 23:30:44 +05:00
|
|
|
import { ThemeProvider } from "@/components/theme-provider";
|
2024-12-06 14:16:05 +05:00
|
|
|
import { Provider } from "jotai";
|
2024-11-23 08:53:16 +05:00
|
|
|
|
2024-11-27 14:18:17 +05:00
|
|
|
import type { Metadata } from "next";
|
|
|
|
import { Barlow } from "next/font/google";
|
|
|
|
import NextTopLoader from "nextjs-toploader";
|
|
|
|
import { Toaster } from "sonner";
|
|
|
|
import "./globals.css";
|
|
|
|
import QueryProvider from "@/components/query-provider";
|
2024-11-24 23:30:44 +05:00
|
|
|
const barlow = Barlow({
|
|
|
|
subsets: ["latin"],
|
|
|
|
weight: ["100", "300", "400", "500", "600", "700", "800", "900"],
|
|
|
|
variable: "--font-barlow",
|
2024-11-23 08:53:16 +05:00
|
|
|
});
|
|
|
|
|
|
|
|
export const metadata: Metadata = {
|
2024-11-30 23:38:32 +05:00
|
|
|
title: "SAR Link Portal",
|
|
|
|
description: "Sarlink Portal",
|
2024-11-23 08:53:16 +05:00
|
|
|
};
|
|
|
|
|
|
|
|
export default function RootLayout({
|
2024-11-24 23:30:44 +05:00
|
|
|
children,
|
2024-11-23 08:53:16 +05:00
|
|
|
}: Readonly<{
|
2024-11-24 23:30:44 +05:00
|
|
|
children: React.ReactNode;
|
2024-11-23 08:53:16 +05:00
|
|
|
}>) {
|
2024-11-24 23:30:44 +05:00
|
|
|
return (
|
|
|
|
<html lang="en" suppressHydrationWarning>
|
|
|
|
<body className={`${barlow.variable} antialiased font-sans`}>
|
2024-12-06 14:16:05 +05:00
|
|
|
<Provider>
|
|
|
|
<NextTopLoader showSpinner={false} zIndex={9999} />
|
|
|
|
<Toaster richColors />
|
|
|
|
<ThemeProvider
|
|
|
|
attribute="class"
|
|
|
|
defaultTheme="system"
|
|
|
|
enableSystem
|
|
|
|
disableTransitionOnChange
|
|
|
|
>
|
|
|
|
<QueryProvider>{children}</QueryProvider>
|
|
|
|
</ThemeProvider>
|
|
|
|
</Provider>
|
2024-11-24 23:30:44 +05:00
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
);
|
2024-11-23 08:53:16 +05:00
|
|
|
}
|