import { useContext as u } from "../../../@rc-component/context/es/context.mjs";
import * as t from "react";
import "../../../rc-util/node_modules/react-is/index.mjs";
import S from "../Cell/index.mjs";
import E from "../context/TableContext.mjs";
import v from "../hooks/useRenderTimes.mjs";
function H(e) {
  process.env.NODE_ENV !== "production" && v(e);
  var l = e.prefixCls, r = e.children, a = e.component, c = e.cellComponent, m = e.className, d = e.expanded, f = e.colSpan, s = e.isEmpty, o = u(E, ["scrollbarSize", "fixHeader", "fixColumn", "componentWidth", "horizonScroll"]), x = o.scrollbarSize, p = o.fixHeader, C = o.fixColumn, i = o.componentWidth, h = o.horizonScroll, n = r;
  return (s ? h && i : C) && (n = /* @__PURE__ */ t.createElement("div", {
    style: {
      width: i - (p ? x : 0),
      position: "sticky",
      left: 0,
      overflow: "hidden"
    },
    className: "".concat(l, "-expanded-row-fixed")
  }, n)), /* @__PURE__ */ t.createElement(a, {
    className: m,
    style: {
      display: d ? null : "none"
    }
  }, /* @__PURE__ */ t.createElement(S, {
    component: c,
    prefixCls: l,
    colSpan: f
  }, n));
}
export {
  H as default
};
