import { useRef } from 'react';

const useTriggerControl = () => {
    const canTriggerRef = useRef(true);
    const canTrigger = () => canTriggerRef.current;
    const setTriggered = () => {
        canTriggerRef.current = false;
    };
    const resetTrigger = () => {
        canTriggerRef.current = true;
    };
    return {
        canTrigger,
        setTriggered,
        resetTrigger,
    };
};

export { useTriggerControl as default };
//# sourceMappingURL=useTriggerControl.js.map
