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