REssay.tsx 391 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;
Jiwon Yoon's avatar
Jiwon Yoon committed
6
  answers: any;
7
8
};

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