add client/admin pages, show info and created admin api and server actions
This commit is contained in:
14
app/[locale]/(protected)/cabinet/client/page.tsx
Normal file
14
app/[locale]/(protected)/cabinet/client/page.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
'use client'
|
||||
|
||||
import { UserInfo } from '@/components/cabinet/user-info'
|
||||
import { useCurrentUser } from '@/hooks/useCurrentUser'
|
||||
|
||||
const ClientPage = ({ params }: any) => {
|
||||
const user = useCurrentUser()
|
||||
|
||||
return (
|
||||
<UserInfo user={user} label="💻 Client component"/>
|
||||
)
|
||||
}
|
||||
|
||||
export default ClientPage
|
||||
Reference in New Issue
Block a user