'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

require('../../../utils/index.cjs');
var WaveEffect = require('./WaveEffect.cjs');
var props = require('../../../utils/vue/props.cjs');

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

exports.default = useWave;
//# sourceMappingURL=useWave.cjs.map
