import type { PlayerIcon } from "@initiative/domain"; import { VALID_PLAYER_ICONS } from "@initiative/domain"; import { cn } from "../lib/utils"; import { PLAYER_ICON_MAP } from "./player-icon-map"; interface IconGridProps { value: string; onChange: (icon: string) => void; } const ICONS = [...VALID_PLAYER_ICONS] as PlayerIcon[]; export function IconGrid({ value, onChange }: Readonly) { return (
{ICONS.map((iconId) => { const Icon = PLAYER_ICON_MAP[iconId]; return ( ); })}
); }