RDate.tsx 376 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 RDate = ({ question, answers }: Props) => {
10
11
  return (
    <div className="m-5">
Jiwon Yoon's avatar
Jiwon Yoon committed
12
      {answers.map((answer: any) => (
13
14
15
        <div key={answer} className="font-bold">
          {answer}
        </div>
16
17
18
19
      ))}
    </div>
  );
};