yo-next-auth/app/[locale]/(protected)/cabinet/server/page.tsx

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