MCPcopy Create free account
hub / github.com/dailydotdev/apps / useIsSpecialUser

Function useIsSpecialUser

packages/shared/src/hooks/auth/useIsSpecialUser.ts:11–22  ·  view source on GitHub ↗
({
  userId,
}: UseIsSpecialUserProps)

Source from the content-addressed store, hash-verified

9export type UseIsSpecialUser = boolean;
10
11export const useIsSpecialUser = ({
12 userId,
13}: UseIsSpecialUserProps): UseIsSpecialUser => {
14 const { user } = useAuthContext();
15
16 return useMemo(() => {
17 return isSpecialUser({
18 userId,
19 loggedUserId: user?.id ?? null,
20 });
21 }, [userId, user?.id]);
22};

Callers 5

CommentActionButtonsFunction · 0.90
CommentActionButtonsV1Function · 0.90
FollowButtonFunction · 0.90
PostOptionButtonContentFunction · 0.90
useCanAwardUserFunction · 0.90

Calls 2

useAuthContextFunction · 0.90
isSpecialUserFunction · 0.90

Tested by

no test coverage detected