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