16 lines
289 B
TypeScript
16 lines
289 B
TypeScript
'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
|
|
|