import { useEffect } from 'react';
export function useAutoCollapseOnCancelled(options) {
    const { enabled, status, setIsExpanded } = options;
    const isCancelled = status === 'cancelled';
    useEffect(() => {
        if (enabled && isCancelled) {
            setIsExpanded(false);
        }
    }, [enabled, isCancelled, setIsExpanded]);
}
//# sourceMappingURL=useAutoCollapseOnCancelled.js.map
