import React from "react"; import { RadioType } from "./CreateSurveyFormPage"; import { useQuestion } from "./question.context"; import { TypeChange } from "./typeDD"; type Props = { element: RadioType; }; export const QRadio = ({ element }: Props) => { const { questionListChange } = useQuestion(); return (
{element.content.choices.map((e: string, index: number) => (
))} {/* */}
); };