interface Props { quality: string; } const config: Record = { keeper: { icon: 'โœ“', label: 'Keeper' }, needs_more: { icon: 'โ†’', label: 'Needs More' }, rejected: { icon: 'โœ—', label: 'Rejected' }, pending: { icon: 'ยท', label: 'Pending' }, }; export default function QualityFlag({ quality }: Props) { const cfg = config[quality] ?? config.pending; return ( {cfg.icon} {cfg.label} ); }