"use client";
import { j as e } from "../../../node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.mjs";
import p from "react-markdown";
import h from "../Button/index.mjs";
import n from "./MarkdownDescription.module.scss.mjs";
const x = ({
  children: t,
  allowedElements: l = [],
  components: s = {},
  ...a
}) => {
  const c = {
    a: ({ href: o, children: r, ...m }) => /* @__PURE__ */ e.jsx(
      "a",
      {
        target: "_blank",
        href: o || "",
        rel: "noopener noreferrer",
        ...m,
        children: /* @__PURE__ */ e.jsx(
          h,
          {
            type: "link",
            size: "small",
            spacing: "xs",
            className: n.linkBtn,
            children: r
          }
        )
      }
    ),
    blockquote: ({ children: o, ...r }) => /* @__PURE__ */ e.jsx("blockquote", { className: n.blockquote, ...r, children: o }),
    ...s
  }, i = [
    "p",
    "strong",
    "b",
    "a",
    "i",
    "em",
    "ul",
    "ol",
    "li",
    "blockquote",
    "h1",
    "h2",
    "h3",
    "h4",
    "h5",
    "h6",
    "pre",
    "code",
    "hr",
    "br",
    ...l || []
  ];
  return /* @__PURE__ */ e.jsx(
    p,
    {
      ...a,
      components: c,
      allowedElements: i,
      children: t
    }
  );
};
export {
  x as MarkdownDescription,
  x as default
};
//# sourceMappingURL=index.mjs.map
