MySurvey.tsx 915 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import React from "react";
import { BasicQuestionType, SurveyType } from "../types";

type Props = {
  data: SurveyType;
};
export const MySurveyCard = ({ data }: Props) => {
  return (
    <div className="w-48 h-60 rounded overflow-hidden border-2">
      <div className="px-6 py-4">
        <p className="text-gray-700 text-base">{data.comment}</p>
      </div>
      <div className="flex flex-col py-6">
        <div className="px-2 py-2">
          <label>{data.title}</label>
        </div>
        <div className="flex justify-end">
          <select
            className="py-2 w-14 bg-themeColor rounded text-white"
            //value={}
            //onChange={}
          >
            <option value="option">옵션</option>
            <option value="option">삭제</option>
            <option value="option">이름 바꾸기</option>
          </select>
        </div>
      </div>
    </div>
  );
};