implement different role based control in react only code example
Example 1: "rbac" react redux navigation bar
user.type === 'A' && <Button />
Example 2: "rbac" react redux navigation bar
user.type === 'A' ? <ButtonSetA /> : <ButtonSetB />
user.type === 'A' && <Button />
user.type === 'A' ? <ButtonSetA /> : <ButtonSetB />