@anoki/fse-marche-ui
Version:
FSE UI components library
53 lines (52 loc) • 1.45 kB
JavaScript
import { j as e } from "./index.es137.js";
import { clsx as r } from "./index.es139.js";
import './components/ui/CardService/CardService.css';/* empty css */
import { Ellipse3 as x } from "./index.es82.js";
import { Ellipse2 as p } from "./index.es81.js";
import { Ellipse as d } from "./index.es80.js";
const b = ({
title: s,
href: i,
titleTag: t = "h3",
asLink: c = "a",
className: n,
iconType: o = "icon1"
}) => {
const l = (m) => {
switch (m) {
case "icon1":
return /* @__PURE__ */ e.jsx(d, {});
case "icon2":
return /* @__PURE__ */ e.jsx(p, {});
case "icon3":
return /* @__PURE__ */ e.jsx(x, {});
default:
return null;
}
}, a = c;
return /* @__PURE__ */ e.jsxs(
"div",
{
className: r(
n,
"ui-service-card",
"bg-primary br-x4 py-x24 pl-x24 w-full shadow"
),
children: [
/* @__PURE__ */ e.jsx(t, { className: "flex-1 h-full base-row align-items-center", children: /* @__PURE__ */ e.jsx(
a,
{
className: "fs-5 md-fs-4 text-white fw-semibold text-decoration-none",
href: i,
children: s
}
) }),
/* @__PURE__ */ e.jsx("div", { className: r("ui-service-card-icon"), children: /* @__PURE__ */ e.jsx("span", { children: l(o) }) })
]
}
);
};
export {
b as CardService
};
//# sourceMappingURL=index.es29.js.map