Called with the role the server kept.
(role: Role) => void
import { type RoleSwitcherProps } from "src/components/profile/RoleSwitcher.tsx";