2024-12-24 18:34:50 +03:00

26 lines
706 B
TypeScript

import { AuthProvider } from '@/providers';
import { I18nProvider } from '@/utils/i18n/provider';
import { type Metadata } from 'next';
import '@repo/ui/globals.css';
import { getLocale } from 'next-intl/server';
import { type PropsWithChildren } from 'react';
export const metadata: Metadata = {
description: 'Your application description goes here',
title: 'Your Application Title Goes Here',
};
export default async function RootLayout({ children }: Readonly<PropsWithChildren>) {
const locale = await getLocale();
return (
<html lang={locale}>
<body>
<I18nProvider>
<AuthProvider>{children}</AuthProvider>
</I18nProvider>
</body>
</html>
);
}