Files
the-sunken-reach/frontend/src/lib/speciesIcons.ts
T
joshuaandClaude Opus 5.5 94067f1268 V1.0.1: Aldenfell campaign seed, content library, party overview
- Seed now resets the database and seeds the Aldenfell campaign from the
  campaign book: admin DM user, default weapons, locations, bestiary,
  pre-built encounters, and DM/shared notes
- Default weapon/spell/monster library, character profile fields,
  locations and dice mode (new migration)
- Party overview page, pagination, info tips, build preview calc
- Remove stale demo-login hint; notes preserve line breaks

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-23 10:24:48 +02:00

20 lines
495 B
TypeScript

import type { Species } from '../api/types';
// Quick visual identification in lists/tables — purely decorative.
export const SPECIES_ICONS: Record<Species, string> = {
HUMAN: '🙂',
HALF_ELF: '🧝',
ELF: '🧝‍♀️',
GNOME: '🍄',
DWARF: '⛏️',
HALFLING: '🌾',
DRAGONBORN: '🐉',
TIEFLING: '😈',
HALF_ORC: '🪓',
ORC: '👹',
};
export function speciesIcon(species: Species | null): string {
return species ? SPECIES_ICONS[species] || '❓' : '❓';
}