analytica-frontend-lib
Version:
Repositório público dos componentes utilizados nas plataformas da Analytica Ensino
12 lines • 619 B
TypeScript
import type { Dispatch, SetStateAction } from 'react';
/**
* Synchronizes dropdown state when it closes externally
* This ensures the toggle button state matches the dropdown state
*
* @param open - Current dropdown open state
* @param isActive - Current active state of the toggle button
* @param setActiveStates - Function to update active states
* @param key - Key identifier for the specific dropdown
*/
export declare const syncDropdownState: (open: boolean, isActive: boolean, setActiveStates: Dispatch<SetStateAction<Record<string, boolean>>>, key: string) => void;
//# sourceMappingURL=dropdown.d.ts.map