import React, { useState } from "react"; import { QEssay } from "./QEssay"; import { QCheckbox } from "./QCheckbox"; import { QRadio } from "./QRadio"; import { QDropdown } from "./QDropdown"; import { QFile } from "./QFile"; import { QRating } from "./QRating"; import { useQuestion } from "./question.context"; type Props = {}; export const Questions = ({}: Props) => { const { addQuestion, questionList, currentId } = useQuestion(); return ( <> {console.log(questionList, currentId)} {questionList.map((element) => { switch (element.type) { case "essay": return ; case "radio": return ; case "checkbox": return ; case "dropdown": return ; case "file": return ; case "rating": return ; default: break; } })}
); };