You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
859 B
30 lines
859 B
import { PropsWithChildren } from 'react'
|
|
import '@/styles/main.css'
|
|
import { Metadata } from 'next'
|
|
import Footer from '@/components/shared/footer'
|
|
import { Toaster } from '@/components/ui/toaster'
|
|
import Analytics from '@/components/shared/analytics'
|
|
import { Session } from 'next-auth'
|
|
import { getServerSession } from 'next-auth'
|
|
import { authOptions } from '@/lib/auth'
|
|
|
|
export const metadata: Metadata = {
|
|
title: 'textbee.dev - sms gateway - dashboard',
|
|
|
|
metadataBase: new URL('https://textbee.dev'),
|
|
}
|
|
|
|
export default async function RootLayout({ children }: PropsWithChildren) {
|
|
const session: Session | null = await getServerSession(authOptions as any)
|
|
|
|
return (
|
|
<html lang='en'>
|
|
<body>
|
|
<main>{children}</main>
|
|
<Analytics user={session?.user} />
|
|
<Footer />
|
|
<Toaster />
|
|
</body>
|
|
</html>
|
|
)
|
|
}
|