37 lines
912 B
TypeScript
37 lines
912 B
TypeScript
import type { Metadata } from 'next';
|
|
import { Inter } from 'next/font/google';
|
|
const inter = Inter({ subsets: ['latin'] });
|
|
import '../fsd/app/styles/global.scss';
|
|
import AppHeader from '@/fsd/widgets/Header/Header';
|
|
import ClientProvider from '@/fsd/app/provider/QueryClient';
|
|
import { AuthProvider } from '@/fsd/app/provider/AuthContext';
|
|
import AuthGuard from "@/fsd/app/provider/AuthGuard"
|
|
import RedirectPage from '@/fsd/pages/RedirectPage';
|
|
|
|
export const metadata: Metadata = {
|
|
title: 'MTUCI JOBS',
|
|
description: 'Project for mtuci jobs',
|
|
icons: {
|
|
icon: '/favicon.svg'
|
|
},
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<ClientProvider>
|
|
<html lang='en'>
|
|
<AuthProvider>
|
|
<body className={inter.className}>
|
|
<AppHeader />
|
|
<AuthGuard>{children}</AuthGuard>
|
|
</body>
|
|
</AuthProvider>
|
|
</html>
|
|
</ClientProvider>
|
|
);
|
|
}
|