Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 | 1x 2x 2x | import type { Role } from '@prisma/client';
// Canonical display label for the 2 roles. The Prisma enum stays as
// MASTER / STAFF internally; UI should always use roleLabel() to display.
export function roleLabel(role: Role): string {
return role === 'MASTER' ? 'Master Admin' : 'Staff Admin';
}
|