-
Notifications
You must be signed in to change notification settings - Fork 0
/
layout.tsx
50 lines (46 loc) · 1.3 KB
/
layout.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import '../styles/globals.css'
import { ReactNode } from 'react'
import { Metadata } from 'next'
import { siteConfig } from '../config/site'
import { fontSans } from '../lib/fonts'
import { cn } from '../lib/utils'
import { Providers } from '../components/providers'
import { SiteBlob } from '../components/site-blob'
import { SiteFooter } from '../components/site-footer'
import { SiteHeader } from '../components/site-header'
import { Session } from 'next-auth'
export const metadata: Metadata = {
title: siteConfig.name,
description: siteConfig.description,
icons: {
icon: '/favicon.ico',
},
}
interface RootLayoutProps {
children: ReactNode
session: Session
}
export default function RootLayout({ children, session }: RootLayoutProps) {
return (
<>
<html lang="pt-BR" suppressHydrationWarning>
<head />
<body
className={cn(
'min-h-screen bg-background font-sans antialiased',
fontSans.variable,
)}
>
<Providers session={session}>
<div className="relative flex min-h-screen flex-col">
<SiteHeader />
<SiteBlob />
<div className="flex-1">{children}</div>
<SiteFooter />
</div>
</Providers>
</body>
</html>
</>
)
}