import { useCallback } from 'react';
export function useDisableClick(disabled, handleClick) {
    const handleClickWrapper = useCallback((event) => {
        if (disabled) {
            event.preventDefault();
            event.stopPropagation();
        }
    }, [disabled]);
    if (!disabled) {
        return handleClick;
    }
    return handleClickWrapper;
}
//# sourceMappingURL=use-disable-interaction.js.map