ARatingForm.tsx 442 Bytes
Newer Older
Lee SeoYeon's avatar
Lee SeoYeon committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import React from "react";
import { RatingType } from "../types";

type Props = {
  element: RatingType;
};

export const ARatingForm = ({ element }: Props) => {
  return (
    <div className="flex w-full gap-4 justify-around my-3">
      {element.content.choices.map((choice) => (
        <div>
          <input className="mr-2"></input>
          <label className="text-lg">{choice.text}</label>
        </div>
      ))}
    </div>
  );
};