import f from "../../../@babel/runtime/helpers/esm/toConsumableArray.mjs";
import u from "../../../classnames/index.mjs";
import * as a from "react";
const y = (e) => {
  const s = (t) => {
    const {
      width: r,
      rows: i = 2
    } = e;
    if (Array.isArray(r))
      return r[t];
    if (i - 1 === t)
      return r;
  }, {
    prefixCls: o,
    className: l,
    style: m,
    rows: n
  } = e, c = f(Array(n)).map((t, r) => (
    // eslint-disable-next-line react/no-array-index-key
    /* @__PURE__ */ a.createElement("li", {
      key: r,
      style: {
        width: s(r)
      }
    })
  ));
  return /* @__PURE__ */ a.createElement("ul", {
    className: u(o, l),
    style: m
  }, c);
}, w = y;
export {
  w as default
};
