added admin layout
This commit is contained in:
7
hooks/useCurrentUser.ts
Normal file
7
hooks/useCurrentUser.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { useSession } from 'next-auth/react'
|
||||
|
||||
export const useCurrentUser = () => {
|
||||
const session = useSession()
|
||||
|
||||
return session.data?.user
|
||||
}
|
||||
Reference in New Issue
Block a user