React-role-controller Usage example import { UserRole } from 'react-role-controller'; <UserRole roles={roles} currentRole={currentRole}> {children} </UserRole> Docs Roles - array of roles (strings), CurrentRole - role (string), Children - array of React nodes