DashBoard组件相关

This commit is contained in:
tangly1024.com
2024-11-21 11:24:32 +08:00
parent 762c9e9440
commit d2f97f7e6b
5 changed files with 55 additions and 24 deletions

View File

@@ -0,0 +1,24 @@
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'
/>
)
}