import { useState as r, useMemo as a, useCallback as s } from "react";
import u from "../index.js";
function b(i) {
  const [e, n] = r(), o = a(() => i, []), l = s((t) => {
    t instanceof HTMLElement ? n(u(t, o)) : n(void 0);
  }, [o]), m = s((t) => {
    e && (t ? e.enable() : e.disable());
  }, [e]);
  return [l, m];
}
export {
  b as useAutoAnimate
};
//# sourceMappingURL=index.js.map
