import React from 'react' import { Choice } from '../types' type Props = { choices: Choice[] onSelect: (id: string) => void } export const ChoiceMenu: React.FC = ({ choices, onSelect }) => { if (!choices.length) return null return (
{choices.map((c) => ( ))}
) }