UNPKG

@anoki/fse-ui

Version:

FSE UI components library

29 lines (28 loc) 1.08 kB
import { j as e } from "./index.es237.js"; import './components/ui/CardEventSlim/CardEvent.css';/* empty css */ import { CalendarOutline as i } from "./index.es171.js"; const o = ({ type: a = "Evento", title: s, location: n, date: c, link: r, asLink: t = "a" }) => { const d = t; return /* @__PURE__ */ e.jsxs("div", { className: "event-card", children: [ /* @__PURE__ */ e.jsxs("div", { className: "event-card__header", children: [ /* @__PURE__ */ e.jsx("span", { className: "event-card__icon", children: /* @__PURE__ */ e.jsx(i, { width: 20, height: 17 }) }), /* @__PURE__ */ e.jsx("span", { className: "event-card__type", children: a }) ] }), /* @__PURE__ */ e.jsx("h1", { className: "event-card__title", children: r ? /* @__PURE__ */ e.jsx(d, { href: r, children: s }) : s }), /* @__PURE__ */ e.jsxs("p", { className: "event-card__info", children: [ n && `${n}, `, /* @__PURE__ */ e.jsx("strong", { children: c }) ] }) ] }); }; export { o as CardEventSlim }; //# sourceMappingURL=index.es42.js.map