Loading...
A react hook that will return true if the given roleName has access.
roleName : string
Trixta role name
boolean
Will be true if the roleName mentioned above has access.
true
roleName
import { useTrixtaAccess } from '@trixtateam/trixta-js-core'; const hasAccess = useTrixtaAccess({ roleName });