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
};

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