import { IonButton } from '@ionic/react';
import './style.css';

interface CorrectionCardProps {
  question_num: number;
  nextQuestion: () => void;
  num_correct: number;
  incNumCorrect: () => void;
}

const CorrectionCard: React.FC<CorrectionCardProps> = ({ num_correct, question_num, nextQuestion, incNumCorrect }) => {
  return (
    <>
      <div>Question card {question_num}</div>
      <div>num_correct: {num_correct}</div>
      <div>
        <IonButton onClick={nextQuestion}>next question</IonButton>
        <IonButton onClick={incNumCorrect}>mark question correct</IonButton>
      </div>
    </>
  );
};

export default CorrectionCard;
