"use strict";

exports.__esModule = true;
exports["default"] = void 0;
var _react = require("react");
var _setRef = _interopRequireDefault(require("../../mixins/set-ref"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
var _default = exports["default"] = function _default(ref) {
  var innerRef = (0, _react.useRef)();
  var forwardRef = (0, _react.useCallback)(function (node) {
    innerRef.current = node;
    (0, _setRef["default"])(ref, node);
  }, []);
  return [innerRef, forwardRef];
};