Use context hooks.

This commit is contained in:
Mike Cao committed 2025-08-21 03:15:47 -07:00
1 parent 00adb00d2d
commit 600a3d28c3
13 files changed
+46 -44

No files matched your search

+6
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);
}
+1
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