import { jsx as e, Fragment as i } from "react/jsx-runtime";
import { Text as p, TextTypes as s } from "./index-Text.js";
import a from "react";
const y = (c) => {
  const {
    description: r,
    replacements: n,
    links: o
  } = c;
  return Array.isArray(r) ? e(a.Fragment, {
    "data-testid": "info-box-description",
    children: r == null ? void 0 : r.map((t, l) => e(i, {
      children: typeof t == "string" ? e(p, {
        color: "--n700",
        type: s.textHelp,
        replacements: n,
        links: o,
        children: t
      }, t + l) : t
    }))
  }) : e(i, {
    children: typeof r == "string" ? e(p, {
      testId: "info-box-description",
      color: "--n700",
      type: s.textHelp,
      replacements: n,
      links: o,
      children: r
    }) : r
  });
};
export {
  y as InfoBoxBody
};
