UNPKG

analytica-frontend-lib

Version:

Repositório público dos componentes utilizados nas plataformas da Analytica Ensino

30 lines 1.43 kB
import type { ReactNode } from 'react'; import { QUESTION_TYPE } from '../../Quiz/useQuizStore/index'; import type { QuestionRendererProps } from './types'; export type { QuestionRendererProps } from './types'; export { getStatusBadge, QuestionContainer, QuestionSubTitle, FillQuestionContent, } from './components/index'; export { renderQuestionAlternative } from './alternative/index'; export { renderQuestionMultipleChoice } from './multipleChoice/index'; export { renderQuestionTrueOrFalse } from './trueOrFalse/index'; export { renderQuestionDissertative } from './dissertative/index'; export { renderQuestionFill } from './fill/index'; export { renderQuestionImage } from './image/index'; export { renderQuestionConnectDots } from './connectDots/index'; /** * Render question based on question type * @param props - Question renderer props * @returns Rendered question content */ export declare const renderQuestion: (props: QuestionRendererProps) => ReactNode; /** * Type for question renderer map */ export type QuestionRendererMap = Record<QUESTION_TYPE, () => ReactNode>; /** * Render from a map of renderers * @param renderers - Map of question type to render function * @param questionType - Type of question to render * @returns Rendered content or null */ export declare const renderFromMap: (renderers: QuestionRendererMap, questionType?: QUESTION_TYPE) => ReactNode; //# sourceMappingURL=index.d.ts.map