UNPKG

@lanaco/lnc-react-ui

Version:

React component library

2 lines (1 loc) 524 B
"use strict";const e=require("react/jsx-runtime"),c=require("react"),s=require("./style-17Ie7d9D.cjs"),i=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),u=i.styled(s.SkeletonAnimationContainer)``,l=({keyPrefix:t})=>e.jsx(u,{children:[1,2,3].map(r=>e.jsx(s.SkeletonRect,{width:"5rem",borderRadius:"0.75rem"},`${t}-${r}`))}),a=({keyPrefix:t,isLoading:r=!1,fallbackComponent:n=e.jsx(e.Fragment,{}),children:o})=>e.jsx(c.Suspense,{fallbackComponent:n,children:r===!0?e.jsx(l,{keyPrefix:t}):o});exports.SuspenseSelectBar=a;