UNPKG

analytica-frontend-lib

Version:

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

30 lines 947 B
import type { BaseApiClient } from '../../types/api'; import { type UseSimulatedStudentDetailsReturn } from './types'; /** * Hook for fetching student details in simulated exams * Supports cascading navigation: Subjects (level 1) -> Contents (level 2) * * @param api - API client with post method * * @example * ```tsx * const { data, loading, error, fetchDetails, reset } = useSimulatedStudentDetails(api); * * // Fetch subjects list (level 1) * fetchDetails({ * simulationType: 'enem-1', * userInstitutionId: 'institution-uuid', * period: '1_MONTH', * }); * * // Fetch contents list (level 2) * fetchDetails({ * simulationType: 'enem-1', * userInstitutionId: 'institution-uuid', * period: '1_MONTH', * subjectId: 'subject-uuid', * }); * ``` */ export declare function useSimulatedStudentDetails(api: BaseApiClient): UseSimulatedStudentDetailsReturn; //# sourceMappingURL=useSimulatedStudentDetails.d.ts.map