add client/admin pages, show info and created admin api and server actions

This commit is contained in:
2024-04-28 19:32:31 +03:00
parent db66161d81
commit d6b259d71c
33 changed files with 458 additions and 91 deletions

View File

@@ -6,6 +6,8 @@ import { lc } from '@/lib/utils'
import './globals.css'
import { SessionProvider } from 'next-auth/react'
import { auth } from '@/config/auth'
import Navbar from '@/components/auth/navbar'
import { Toaster } from '@/components/ui/sonner'
const inter = Inter({ subsets: ['cyrillic'] })
@@ -24,6 +26,8 @@ export default async function RootLayout ({ params: { locale }, children }: Read
<html lang={lc(locale)?.java}>
<body className={inter.className}>
<I18nProviderClient locale={locale} fallback="Loading...">
<Navbar/>
<Toaster/>
{children}
</I18nProviderClient>
</body>