MCPcopy
hub / github.com/Peppermint-Lab/peppermint / useUser

Function useUser

apps/client/store/session.js:62–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60};
61
62export const useUser = () => {
63 const context = useContext(UserContext);
64 if (!context) {
65 throw new Error("useUser must be used within a UserProvider");
66 }
67 return context;
68};

Callers 15

AccountDropdownFunction · 0.90
TicketFunction · 0.90
ThemeSettingsFunction · 0.90
NotebookEditorFunction · 0.90
CreateTicketModalFunction · 0.90
AdminLayoutFunction · 0.90
ShadLayoutFunction · 0.90
NewLayoutFunction · 0.90
PortalLayoutFunction · 0.90
HomeFunction · 0.90
TicketsFunction · 0.90
CreateTicketFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected