Release v0.1.17 2026-07-19
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import type { PartyRole } from "../../game/rpgRoguelike";
|
||||
import { partyRolePresentation } from "../../game/rpgRoguelike";
|
||||
|
||||
export function PartyRoleBadge({ role }: { readonly role: PartyRole }) {
|
||||
const presentation = partyRolePresentation(role);
|
||||
return (
|
||||
<span
|
||||
className={`rpg-role-badge is-${presentation.className}`}
|
||||
aria-label={`Role: ${presentation.label}`}
|
||||
>
|
||||
<i aria-hidden="true">{presentation.icon}</i>
|
||||
<b>{presentation.label}</b>
|
||||
</span>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user