UNPKG

@lanaco/lnc-react-ui

Version:

React component library

19 lines (18 loc) 744 B
import { jsx as e, Fragment as i } from "react/jsx-runtime"; import { Suspense as s } from "react"; import { S as m, a } from "./style-NhzYtIA7.js"; import { s as l } from "./emotion-styled.browser.esm-DfbrHHed.js"; import { d as c } from "./breakpoints-BubDitvo.js"; const d = l(m)` @media ${c("S")} { flex-direction: column; } `, S = ({ keyPrefix: t }) => /* @__PURE__ */ e(d, { children: [1, 2, 3].map((o) => /* @__PURE__ */ e(a, { width: "100%", height: "23rem" }, `${t}-${o}`)) }), k = ({ keyPrefix: t, isLoading: o = !1, fallbackComponent: n = /* @__PURE__ */ e(i, {}), children: r }) => /* @__PURE__ */ e(s, { fallbackComponent: n, children: o === !0 ? /* @__PURE__ */ e(S, { keyPrefix: t }) : r }); export { k as S };