MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / useRole

Function useRole

packages/web/src/features/auth/useRole.ts:6–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4import { RoleContext } from "./roleProvider";
5
6export const useRole = () => {
7 const { role } = useContext(RoleContext);
8 return role;
9}

Callers 3

UpsellLoadErrorFunction · 0.90
UpsellPanelContentFunction · 0.90
ConnectorsMenuFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected