UNPKG

@fefade/react

Version:

Reusable React UI components powered by the fefade core system.

27 lines (26 loc) 673 B
import { jsx as m } from "react/jsx-runtime"; import { forwardRef as e } from "react"; import d from "../../utils/actionUtil.js"; import "../../contexts/ThemeConfigContext.js"; import "../../contexts/ToastContext.js"; import { S as n } from "../../index-TJBPUAjM.js"; const x = e( ({ className: r = "", lazy: o = !1, dataSrc: t, fallback: a, ...i }, c) => { const f = d(n, { lazy: o }); return /* @__PURE__ */ m( "img", { ...i, ref: f, className: r, "data-src": t, "data-fallback": a, loading: o ? "lazy" : void 0, decoding: o ? "async" : void 0 } ); } ); export { x as default };