UNPKG

@anoki/fse-ui

Version:

FSE UI components library

29 lines (28 loc) 1.11 kB
import { j as e } from "./index.es278.js"; import './components/ui/CardEventSlim/CardEvent.css';/* empty css */ import { CalendarOutline as i } from "./index.es39.js"; const m = ({ type: a = "Evento", title: r, location: s, date: c, link: n, 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 cursor-pointer hover-underline", children: n ? /* @__PURE__ */ e.jsx(d, { href: n, children: r }) : r }), /* @__PURE__ */ e.jsxs("p", { className: "event-card__info", children: [ s && `${s}, `, /* @__PURE__ */ e.jsx("strong", { children: c }) ] }) ] }); }; export { m as CardEventSlim }; //# sourceMappingURL=index.es48.js.map