/** @typedef {{ text: string, personality: 'zen' | 'nightOwl' | 'socialButterfly' }} Option */ /** * @param {{ * question: string, * options: Option[], * current: number, * total: number, * onSelect: (personality: Option['personality']) => void, * }} props * @returns {import('react').JSX.Element} */ export default function QuizQuestion({ question, options, current, total, onSelect }) { return (
{/* Progress */}
Your Coffee Personality {current} of {total}
{/* Question */}

{question}

{/* Options */}
{options.map((option, i) => ( ))}
); }