mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
25 lines
492 B
JavaScript
25 lines
492 B
JavaScript
import { UserProfile } from '@clerk/nextjs'
|
|
/**
|
|
* 控制台用户账号面板
|
|
* @returns
|
|
*/
|
|
export default function DashboardUser() {
|
|
const enableClerk = process.env.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY
|
|
if (!enableClerk) {
|
|
return null
|
|
}
|
|
return (
|
|
<UserProfile
|
|
appearance={{
|
|
elements: {
|
|
cardBox: 'w-full',
|
|
rootBox: 'w-full'
|
|
}
|
|
}}
|
|
className='bg-blue-300'
|
|
routing='path'
|
|
path='/dashboard/user-profile'
|
|
/>
|
|
)
|
|
}
|