@intility/bifrost-react
Version:
React library for Intility's design system, Bifrost.
32 lines • 672 B
JavaScript
import { c as _c } from "react-compiler-runtime";
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
const Skeleton = t0 => {
const $ = _c(5);
const {
children,
repeat: t1
} = t0;
const repeat = t1 === undefined ? 1 : t1;
let t2;
if ($[0] !== children || $[1] !== repeat) {
t2 = Array(repeat).fill(children);
$[0] = children;
$[1] = repeat;
$[2] = t2;
} else {
t2 = $[2];
}
let t3;
if ($[3] !== t2) {
t3 = /*#__PURE__*/_jsx(_Fragment, {
children: t2
});
$[3] = t2;
$[4] = t3;
} else {
t3 = $[4];
}
return t3;
};
Skeleton.displayName = "Skeleton";
export default Skeleton;