"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const React = require("react");
function getRefProp(element) {
  var _a;
  const version = React.version;
  if (typeof React.version !== "string") {
    return element == null ? void 0 : element.ref;
  }
  if (version.startsWith("18.")) {
    return element == null ? void 0 : element.ref;
  }
  return (_a = element == null ? void 0 : element.props) == null ? void 0 : _a.ref;
}
exports.getRefProp = getRefProp;
