"use strict";
require("react");
const is = require("../_util/is.js");
const classNames = require("../_util/classNames.js");
const emotionReactJsxRuntime_browser_esm = require("../../../../../../@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$1 = classNames(prefixCls + "-text", className);
  var nodes = [];
  function getTextWidth(index) {
    if (is.isArray(width)) {
      return width[index];
    }
    if (rows - 1 === index) {
      return width;
    }
    return void 0;
  }
  for (var i = 0; i < rows; i++) {
    nodes.push(/* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx("li", {
      className: prefixCls + "-text-row",
      style: {
        width: getTextWidth(i)
      }
    }, i));
  }
  return /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx("ul", {
    className: classNames$1,
    style,
    children: nodes
  });
}
module.exports = text;
//# sourceMappingURL=text.js.map
