useTrixtaAccess
A react hook that will return true if the given roleName has access.
import { useTrixtaAccess } from '@trixtateam/trixta-js-core';
const hasAccess = useTrixtaAccess({ roleName });
Options
roleName : stringTrixta role name
Returns
booleanWill be
trueif theroleNamementioned above has access.
Last updated
Was this helpful?