import { jsx as e, jsxs as l } from "react/jsx-runtime";
import { map as r, toPairs as o, isArray as c } from "es-toolkit/compat";
const m = (s) => {
  const { note: i, version: n } = s, { date: a, content: t } = i;
  return /* @__PURE__ */ l("div", { className: "panel panel-default", children: [
    /* @__PURE__ */ e("div", { className: "panel-heading", children: /* @__PURE__ */ l("div", { className: "display-flex justify-content-between", children: [
      /* @__PURE__ */ e("span", { className: "text-size-16 text-medium", children: `${n}` }),
      /* @__PURE__ */ e("span", { className: "text-thin", children: a })
    ] }) }),
    /* @__PURE__ */ e("div", { className: "panel-body white-space-pre-line", children: c(t) ? /* @__PURE__ */ e("ul", { className: "margin-bottom-0 margin-left-5 padding-left-25", children: r(t, (d) => /* @__PURE__ */ e("li", { children: d }, `${n}-note-${Math.random()}`)) }) : /* @__PURE__ */ e("div", { children: t }) })
  ] }, `${n}-note`);
}, N = (s) => {
  const { releaseNotes: i, ...n } = s;
  return /* @__PURE__ */ e("div", { ...n, children: r(o(i), ([a, t]) => /* @__PURE__ */ e(m, { note: t, version: a }, a)) });
};
export {
  N as default
};
//# sourceMappingURL=ReleaseNotes.js.map
