Use context hooks.

This commit is contained in:
Mike Cao 2025-08-21 03:15:47 -07:00
parent 00adb00d2d
commit 600a3d28c3
13 changed files with 46 additions and 44 deletions

View file

@ -0,0 +1,6 @@
import { UserContext } from '@/app/(main)/admin/users/[userId]/UserProvider';
import { useContext } from 'react';
export function useUser() {
return useContext(UserContext);
}

View file

@ -4,6 +4,7 @@
export * from './context/useLink';
export * from './context/usePixel';
export * from './context/useTeam';
export * from './context/useUser';
export * from './context/useWebsite';
// Query hooks