import l from "../../../@babel/runtime/helpers/esm/typeof.mjs";
import * as i from "react";
var s = /* @__PURE__ */ i.forwardRef(function(a, o) {
  var n = a.position, f = a.prefixCls, t = a.extra;
  if (!t)
    return null;
  var e, r = {};
  return l(t) === "object" && !/* @__PURE__ */ i.isValidElement(t) ? r = t : r.right = t, n === "right" && (e = r.right), n === "left" && (e = r.left), e ? /* @__PURE__ */ i.createElement("div", {
    className: "".concat(f, "-extra-content"),
    ref: o
  }, e) : null;
});
process.env.NODE_ENV !== "production" && (s.displayName = "ExtraContent");
export {
  s as default
};
