import React from "react"; import { DropdownType } from "../types"; import { useQuestion } from "./question.context"; type Props = { element: DropdownType; }; export const QDropdown = ({ element }: Props) => { const { questionListChange } = useQuestion(); return (
{element.content.choices.map((e: any) => (
))}
); };