function RoleSwitcher
RoleSwitcher(unnamed 0: RoleSwitcherProps): React.JSX.Element

Renders the user's role as a Segmented whose clicks save it to PATCH /api/users/:id/role, which checks the permission again.

Parameters

Return Type

React.JSX.Element

Usage

import { RoleSwitcher } from "src/components/profile/RoleSwitcher.tsx";