"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = useForkRef;
var _react = require("react");
var _setRef = _interopRequireDefault(require("./setRef"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function useForkRef(refA, refB) {
  return (0, _react.useMemo)(function () {
    return function (refValue) {
      (0, _setRef.default)(refA, refValue);
      (0, _setRef.default)(refB, refValue);
    };
  }, [refA, refB]);
}
//# sourceMappingURL=useForkRef.js.map