Add Dashboard
This commit is contained in:
7
apps/builder/services/user.ts
Normal file
7
apps/builder/services/user.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { User } from '@typebot/prisma'
|
||||
import { useSession } from 'next-auth/react'
|
||||
|
||||
export const useUser = (): User | undefined => {
|
||||
const { data } = useSession()
|
||||
return data?.user as User | undefined
|
||||
}
|
||||
Reference in New Issue
Block a user