mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-01-30 16:43:37 +00:00
47 lines
1.1 KiB
TypeScript
47 lines
1.1 KiB
TypeScript
import { SpeedInsights } from '@vercel/speed-insights/next';
|
|
import { Analytics } from '@vercel/analytics/react';
|
|
import { Inter } from 'next/font/google';
|
|
import type { Metadata } from 'next';
|
|
|
|
import './globals.css';
|
|
import { siteConfig } from '@/config/site';
|
|
import { ThemeProvider } from '@/components/theme-provider';
|
|
|
|
const inter = Inter({ subsets: ['latin'] });
|
|
|
|
export const metadata: Metadata = {
|
|
title: {
|
|
default: siteConfig.name,
|
|
template: `%s | ${siteConfig.name}`,
|
|
},
|
|
description: siteConfig.description,
|
|
icons: [
|
|
{
|
|
url: '/favicon.svg',
|
|
href: '/favicon.svg',
|
|
},
|
|
],
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<html lang='en' suppressHydrationWarning>
|
|
<body className={inter.className}>
|
|
<SpeedInsights />
|
|
<ThemeProvider
|
|
attribute='class'
|
|
defaultTheme='system'
|
|
enableSystem
|
|
disableTransitionOnChange
|
|
>
|
|
{children}
|
|
</ThemeProvider>
|
|
<Analytics />
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|