import { jsxs as t, jsx as m } from "react/jsx-runtime";
import { Typography as s } from "../Typography/Typography.es.js";
import e from "../../components/Quote/Quote.module.css";
import { prefixSelection as c, sourcePrefixSelection as p } from "./const.es.js";
const f = ({ prefix: a, color: o, quote: n, source: i, sourcePrefix: r }) => {
  var l;
  return /* @__PURE__ */ t("div", { className: e.quoteContainer, children: [
    /* @__PURE__ */ t("div", { className: e.quoteContent, children: [
      a && o && /* @__PURE__ */ m("img", { src: (l = c[a]) == null ? void 0 : l[o], alt: `${a} icon`, className: e.quoteIcon }),
      /* @__PURE__ */ m(s, { as: "p", defaultVariant: "preambleSm", mobileVariant: "bodySm", className: e.quoteText, children: n })
    ] }),
    i && r && /* @__PURE__ */ t(
      s,
      {
        as: "figcaption",
        defaultVariant: "labelSm",
        mobileVariant: "labelXs",
        emphasis: !0,
        className: e.quoteAuthor,
        children: [
          p[r],
          " ",
          i
        ]
      }
    )
  ] });
};
export {
  f as Quote
};
