Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
4
import
{ RoleContext } from
"./roleProvider"
;
5
6
export
const
useRole = () => {
7
const
{ role } = useContext(RoleContext);
8
return
role;
9
}
Callers
3
UpsellLoadError
Function · 0.90
UpsellPanelContent
Function · 0.90
ConnectorsMenu
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected