interface RoleSwitcherProps

Passed to RoleSwitcher by ProfileManageTab, which shows it only to those who hold user:manage, on another user's profile.

Properties

userId: string
onSaved: (role: Role) => void

Called with the role the server kept.

Usage

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