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