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 10 11 12 13 14 15 | 10x 10x | import { Badge } from "@/components/ui";
interface RoleBadgeProps {
role: "owner" | "curator";
}
// Roles are identity, not a value-ramp: each maps to its own role Badge variant,
// never the tier tokens. Any non-owner role is shown as Curator.
export function RoleBadge({ role }: RoleBadgeProps) {
const isOwner = role === "owner";
return (
<Badge variant={isOwner ? "owner" : "curator"}>{isOwner ? "Owner" : "Curator"}</Badge>
);
}
|