import { useCallback as m } from "react";
import { isRefObject as p } from "../../utils/is-ref-object.es.js";
function d(i, u, f) {
  return m(
    function(o) {
      var r;
      o && ((r = i.mount) === null || r === void 0 || r.call(i, o)), u && (o ? u.mount(o) : u.unmount()), f && (typeof f == "function" ? f(o) : p(f) && (f.current = o));
    },
    [u]
  );
}
export {
  d as useMotionRef
};
//# sourceMappingURL=use-motion-ref.es.js.map
