add client/admin pages, show info and created admin api and server actions
This commit is contained in:
15
app/[locale]/(protected)/cabinet/server/page.tsx
Normal file
15
app/[locale]/(protected)/cabinet/server/page.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
'use server'
|
||||
|
||||
import { currentUser } from '@/lib/auth'
|
||||
import { UserInfo } from '@/components/cabinet/user-info'
|
||||
|
||||
const ServerPage = async () => {
|
||||
const user = await currentUser()
|
||||
|
||||
return (
|
||||
<UserInfo user={user} label="🗄️ Server component"/>
|
||||
)
|
||||
}
|
||||
|
||||
export default ServerPage
|
||||
|
||||
Reference in New Issue
Block a user