UNPKG

analytica-frontend-lib

Version:

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

68 lines 1.99 kB
import { type ModulesConfig, type SimulationsConfig, type PerformanceGraphsConfig, type ReportsConfig, type SimulatedScoreConfig } from '../types/modulesConfig'; export interface UseModulesReturn { modules: ModulesConfig; loading: boolean; hasSimulator: boolean; hasEssay: boolean; hasForum: boolean; hasSupport: boolean; hasChat: boolean; hasRecommendedLessons: boolean; hasActivities: boolean; hasQuestionBanks: boolean; hasComparator: boolean; hasPerformance: boolean; hasDashboard: boolean; hasLessons: boolean; hasTutorial: boolean; tutorialUrl: string; hasReadingFluency: boolean; hasExams: boolean; hasSimulations: boolean; simulations: SimulationsConfig; hasPerformanceAulas: boolean; hasPerformanceAcessos: boolean; hasPerformanceSimulados: boolean; hasPerformanceAtividades: boolean; hasPerformanceQuestoes: boolean; hasPerformanceRanking: boolean; performanceGraphs: PerformanceGraphsConfig; hasSimulatedReports: boolean; hasSimulatedGenericReports: boolean; hasActivitiesReports: boolean; hasQuestionnairesReports: boolean; hasLessonsReports: boolean; hasEssayReports: boolean; reports: ReportsConfig; hasSimulatedScoreTri: boolean; hasSimulatedScoreAbsoluto: boolean; simulatedScore: SimulatedScoreConfig; } /** * Hook to access modules configuration * Provides both the raw modules object and convenience boolean helpers * * @returns {UseModulesReturn} Modules state with helper properties * * @example * ```tsx * const { * hasEssay, * hasForum, * hasSupport, * hasSimulator, * hasPerformanceAulas, * hasExams, * } = useModules(); * * return ( * <> * {hasEssay && <EssayMenuItem />} * {hasForum && <ForumMenuItem />} * {hasPerformanceAulas && <AulasGraph />} * </> * ); * ``` */ export declare const useModules: () => UseModulesReturn; //# sourceMappingURL=useModules.d.ts.map