@clubmed/trident-ui
Version:
Shared ClubMed React UI components
19 lines (18 loc) • 502 B
JavaScript
import { jsx as t, jsxs as s } from "react/jsx-runtime";
const u = ({
alt: g = "",
lazyLoad: e = !0,
sizes: o,
sources: n,
...a
}) => {
const r = /* @__PURE__ */ t("img", { ...a, alt: g, decoding: e ? "async" : "auto", draggable: "false", loading: e ? "lazy" : "eager" });
return n?.length ? /* @__PURE__ */ s("picture", { children: [
n.map((c, i) => /* @__PURE__ */ t("source", { sizes: o, ...c }, i)),
r
] }) : r;
};
export {
u as Image
};
//# sourceMappingURL=Image.js.map