import "react";
import { isArray } from "../_util/is.js";
import cs from "../_util/classNames.js";
import { jsx } from "../../../../../../@emotion_react@11.10.4_3toe27fv7etiytxb5kxc7fxaw4/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js";
function text(props) {
  var style = props.style, _a = props.width, width = _a === void 0 ? "60%" : _a, _b = props.rows, rows = _b === void 0 ? 3 : _b, className = props.className, prefixCls = props.prefixCls;
  var classNames = cs(prefixCls + "-text", className);
  var nodes = [];
  function getTextWidth(index) {
    if (isArray(width)) {
      return width[index];
    }
    if (rows - 1 === index) {
      return width;
    }
    return void 0;
  }
  for (var i = 0; i < rows; i++) {
    nodes.push(/* @__PURE__ */ jsx("li", {
      className: prefixCls + "-text-row",
      style: {
        width: getTextWidth(i)
      }
    }, i));
  }
  return /* @__PURE__ */ jsx("ul", {
    className: classNames,
    style,
    children: nodes
  });
}
export {
  text as default
};
//# sourceMappingURL=text.js.map
