UNPKG

analytica-frontend-lib

Version:

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

33 lines 1.55 kB
import { SubjectEnum } from '../enums/SubjectEnum'; import type { BaseApiClient } from '../types/api'; /** * Props for the ActivityDetails component */ export interface ActivityDetailsProps { /** Activity ID to display details for */ activityId: string; /** API client instance for making requests */ apiClient: BaseApiClient; /** Callback when back button is clicked */ onBack?: () => void; /** Image for empty state */ emptyStateImage?: string; /** Function to map subject name to SubjectEnum */ mapSubjectNameToEnum?: (subjectName: string) => SubjectEnum | null; /** * Callback for downloading the answer sheet for a student. * Presencial mode is determined by `activity.isDigital === false && activity.subtype === ActivitySubtype.PROVA`, * not by the presence of this callback. When the activity is presencial: * - Hides the "Duração" column * - Renames "Respondido em" → "Gabarito recebido em" * - Shows a "Gabarito" column (before "Resultado"); button is disabled when callback is absent */ onDownloadAnswerSheet?: (studentId: string) => void; } /** * ActivityDetails component * Displays detailed information about an activity including statistics and student progress */ export declare const ActivityDetails: ({ activityId, apiClient, onBack, emptyStateImage, mapSubjectNameToEnum, onDownloadAnswerSheet, }: ActivityDetailsProps) => import("react/jsx-runtime").JSX.Element; export default ActivityDetails; //# sourceMappingURL=ActivityDetails.d.ts.map