mirror of
https://github.com/xCyanGrizzly/DragonsStash.git
synced 2026-05-11 06:11:15 +00:00
Init
This commit is contained in:
8
src/hooks/use-current-user.ts
Normal file
8
src/hooks/use-current-user.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
"use client";
|
||||
|
||||
import { useSession } from "next-auth/react";
|
||||
|
||||
export function useCurrentUser() {
|
||||
const { data: session } = useSession();
|
||||
return session?.user;
|
||||
}
|
||||
Reference in New Issue
Block a user