MCPcopy Create free account
hub / github.com/EsperoTech/yaade / IUserContext

Interface IUserContext

client/src/context/UserContext.tsx:11–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9import User from '../model/User';
10
11interface IUserContext {
12 user: User | undefined;
13 setUser: Dispatch<SetStateAction<User | undefined>>;
14 isAdmin: () => boolean;
15}
16
17const UserContext = createContext<IUserContext>({
18 user: undefined,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected