30 lines
693 B
TypeScript
30 lines
693 B
TypeScript
import './globals.css';
|
|
import '@radix-ui/themes/styles.css';
|
|
import type { Metadata } from 'next';
|
|
import { AuthProvider } from '@/lib/auth';
|
|
import { Theme } from '@radix-ui/themes';
|
|
import Header from '@/app/components/layout/Header';
|
|
|
|
export const metadata: Metadata = {
|
|
title: 'ShortURL Analytics',
|
|
description: 'Track and analyze shortened links',
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html lang="en" suppressHydrationWarning>
|
|
<body>
|
|
<Theme>
|
|
<AuthProvider>
|
|
<Header />
|
|
{children}
|
|
</AuthProvider>
|
|
</Theme>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|