UNPKG

analytica-frontend-lib

Version:

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

25 lines 1.16 kB
import { type ActivityCategory, type ActiveTab, type TypeConfig } from './TypeSelector.types/index'; /** * Props for the TypeSelector component */ export interface TypeSelectorProps { /** Current activity type selected */ value: ActivityCategory; /** Current active tab (to preserve when switching types) */ currentTab: ActiveTab; /** Configuration for activity types (routes and labels) */ config: Record<ActivityCategory, TypeConfig>; /** * Optional filter to include only specific categories. * If not provided, automatically calculated based on hasExams flag from useModules. * Only use this prop for special cases where you need to override the default behavior. */ allowedCategories?: ActivityCategory[]; } /** * Type selector dropdown for switching between Atividades and Provas * Navigates to the corresponding route while preserving the current tab */ export declare const TypeSelector: ({ value, currentTab, config, allowedCategories: allowedCategoriesProp, }: TypeSelectorProps) => import("react/jsx-runtime").JSX.Element; export default TypeSelector; //# sourceMappingURL=TypeSelector.d.ts.map