UNPKG

analytica-frontend-lib

Version:

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

47 lines 1.69 kB
import { type ReactNode } from 'react'; import { QUESTION_TYPE } from '../Quiz/useQuizStore/index'; export interface MatchingPairPreview { id: string; option: string; correctValue: string; } interface ActivityCardQuestionPreviewProps { subjectName?: string; subjectColor?: string; iconName?: string; bank?: string; year?: string; isDark?: boolean; questionType?: QUESTION_TYPE; /** * Optional label override when questionType is not provided. */ questionTypeLabel?: string; statement?: string; question?: { options: { id: string; option: string; isCorrect?: boolean; }[]; correctOptionIds?: string[]; }; /** * Matching pairs for RELACIONAR question type. * Each pair has an option (left column) and correctValue (right column). */ matchingPairs?: MatchingPairPreview[]; /** * Optional solution/explanation (gabarito comentado). When provided, renders a * "Resolução" block at the end of the expanded card. */ solutionExplanation?: string | null; defaultExpanded?: boolean; value?: string; className?: string; children?: ReactNode; position?: number; } export declare const ActivityCardQuestionPreview: ({ subjectName, subjectColor, iconName, bank, year, isDark, questionType, questionTypeLabel, statement, question, matchingPairs, solutionExplanation, defaultExpanded, value, className, children, position, }: ActivityCardQuestionPreviewProps) => import("react/jsx-runtime").JSX.Element; export type { ActivityCardQuestionPreviewProps }; //# sourceMappingURL=ActivityCardQuestionPreview.d.ts.map