import React from "react"; import { QCheckbox, QDate, QDropdown, QEssay, QFile, QRadio, QRating, ACheckbox, ADate, ADropdown, AEssay, AFile, ARadio, ARating, REssay, RCheckbox, RRadio, RDropdown, RFile, RRating, RDate, } from "../forms"; import { CreateQuestionData, IAnswer, IQuestionData } from "../types"; export const getElementByQuestionType = ( element: CreateQuestionData, handleQuestion: Function, isEditing: boolean ) => { switch (element.type) { case "singletext": return ( ); case "radio": return ( ); case "checkbox": return ( ); case "dropdown": return ( ); case "file": return ( ); case "rating": return ( ); case "date": return ; default: return <>; } }; export const getAnswerElementByType = ( element: IQuestionData, answer: IAnswer ) => { switch (element.type) { case "singletext": return ; case "radio": return ; case "checkbox": return ; case "dropdown": return ; case "file": return ; case "rating": return ; case "date": return ; default: return <>; } }; export const getResultElementByType = ( question: IQuestionData, answers: any ) => { switch (question.type) { case "singletext": return ; case "radio": return ; case "checkbox": return ; case "dropdown": return ; case "file": return ; case "rating": return ; case "date": return ; default: return <>; } };