UNPKG

@anoki/fse-ui

Version:

FSE UI components library

34 lines (33 loc) 1.18 kB
import { j as s } from "./index.es244.js"; import './components/ui/CardFaqCTA/CardFaqCTA.css';/* empty css */ import { CtaCardIcon as d } from "./index.es446.js"; var C = /* @__PURE__ */ ((r) => (r.FAQ = "FAQ", r.CTA = "CTA", r.CTAICON = "CTAICON", r))(C || {}); const h = ({ type: r = "Evento", title: n, description: o, link: e, openModal: t, isExternal: c, asLink: i = "a" }) => { const l = r === "FAQ" ? "div" : i, a = r === "FAQ" ? "faq-card" : r === "CTA" ? "cta-card" : "cta-icon-card", m = r === "FAQ" ? { className: a, onClick: t } : { href: e, target: c ? "_blank" : void 0, rel: c ? "noopener noreferrer" : void 0, className: a }; return /* @__PURE__ */ s.jsxs(l, { ...m, children: [ /* @__PURE__ */ s.jsx("div", { className: `${a}__header`, children: /* @__PURE__ */ s.jsx("h3", { className: `${a}__title`, children: n }) }), r === "FAQ" && o && /* @__PURE__ */ s.jsx("span", { className: `${a}__description`, children: o }), r === "CTAICON" && /* @__PURE__ */ s.jsx(d, { className: `${a}__icon` }) ] }); }; export { h as CardFaqCTA, C as CardFaqCTAType }; //# sourceMappingURL=index.es132.js.map