2
0

Add Dashboard

This commit is contained in:
Baptiste Arnaud
2021-12-06 15:48:50 +01:00
parent 5e14a94dea
commit 54a641b819
47 changed files with 2002 additions and 168 deletions

View 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
}