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