@lanaco/lnc-react-ui
Version:
React component library
21 lines (20 loc) • 669 B
JavaScript
import { jsx as e, Fragment as s } from "react/jsx-runtime";
import { Suspense as a } from "react";
import { S as m, a as i } from "./style-NhzYtIA7.js";
import { s as l } from "./emotion-styled.browser.esm-DfbrHHed.js";
const S = l(m)``, c = ({ keyPrefix: r }) => /* @__PURE__ */ e(S, { children: [1, 2, 3].map((t) => /* @__PURE__ */ e(
i,
{
width: "5rem",
borderRadius: "0.75rem"
},
`${r}-${t}`
)) }), h = ({
keyPrefix: r,
isLoading: t = !1,
fallbackComponent: n = /* @__PURE__ */ e(s, {}),
children: o
}) => /* @__PURE__ */ e(a, { fallbackComponent: n, children: t === !0 ? /* @__PURE__ */ e(c, { keyPrefix: r }) : o });
export {
h as S
};