mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-03 07:26:45 +00:00
DashBoard组件相关
This commit is contained in:
24
components/ui/dashboard/DashboardUser.js
Normal file
24
components/ui/dashboard/DashboardUser.js
Normal 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'
|
||||
/>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user