mirror of
https://github.com/harivansh-afk/Saas-Teamspace.git
synced 2026-04-21 19:00:48 +00:00
initial commit
This commit is contained in:
commit
ef9ccf22d3
133 changed files with 20802 additions and 0 deletions
43
app/layout.tsx
Normal file
43
app/layout.tsx
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
import type { Metadata } from 'next'
|
||||
import { Inter } from 'next/font/google'
|
||||
import './globals.css'
|
||||
import { ThemeProvider } from '@/components/ui/theme-provider'
|
||||
import { Navbar } from '@/components/navbar'
|
||||
import { ToastProvider } from '@/components/providers/toaster-provider'
|
||||
import { SessionProvider } from 'next-auth/react'
|
||||
import { auth } from '@/auth'
|
||||
import { AlertDemo } from '@/components/alert'
|
||||
|
||||
const inter = Inter({ subsets: ['latin'] })
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: 'Nizzy-Starter',
|
||||
description: 'The best SaaS starter kit on the web 🌎 🚀 HAHA'
|
||||
}
|
||||
|
||||
export default async function RootLayout({
|
||||
children
|
||||
}: Readonly<{
|
||||
children: React.ReactNode
|
||||
}>) {
|
||||
const session = await auth()
|
||||
return (
|
||||
<SessionProvider session={session}>
|
||||
<html lang="en" suppressHydrationWarning>
|
||||
<body className={inter.className}>
|
||||
<ThemeProvider
|
||||
attribute="class"
|
||||
defaultTheme="system"
|
||||
enableSystem
|
||||
disableTransitionOnChange
|
||||
>
|
||||
<ToastProvider />
|
||||
<AlertDemo />
|
||||
<Navbar />
|
||||
{children}
|
||||
</ThemeProvider>
|
||||
</body>
|
||||
</html>
|
||||
</SessionProvider>
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue