import { useMemo, useState } from 'react'; import { FIGHTERS, fighterInitials } from '@sbt/shared'; /** * Placeholder character picker — renders initial chips for the full SSBU roster. * Swap the chip for a real stock icon later by mapping the fighter id to an image. */ export function CharacterPicker({ value, onChange }: { value: string; onChange: (id: string) => void }) { const [open, setOpen] = useState(false); const [q, setQ] = useState(''); const filtered = useMemo( () => FIGHTERS.filter((f) => f.toLowerCase().includes(q.toLowerCase())), [q], ); return (