import '../../../utils/index.mjs';
import showWaveEffect from './WaveEffect.mjs';
import { findDOMNode } from '../../../utils/vue/props.mjs';

function useWave(instance, className, wave) {
  function showWave() {
    var _a;
    const node = findDOMNode(instance);
    if (((_a = wave == null ? void 0 : wave.value) == null ? void 0 : _a.disabled) || !node)
      return;
    showWaveEffect(node, className.value);
  }
  return showWave;
}

export { useWave as default };
//# sourceMappingURL=useWave.mjs.map
