REssay.tsx 375 Bytes
Newer Older
1
import React from "react";
Yoon, Daeki's avatar
Yoon, Daeki committed
2
import { IQuestionData } from "../types";
3
4

type Props = {
Yoon, Daeki's avatar
Yoon, Daeki committed
5
  question: IQuestionData;
6
7
};

8
export const REssay = ({ question }: Props) => {
9
10
  return (
    <div className="m-5">
Yoon, Daeki's avatar
Yoon, Daeki committed
11
12
13
14
      {question.answers.map((answer: any, index: number) => (
        <div key={index} className="font-bold">
          {answer}
        </div>
15
16
17
18
      ))}
    </div>
  );
};