@selfcommunity/react-ui
Version:
React UI Components to integrate a Community created with SelfCommunity Platform.
22 lines (21 loc) • 1.28 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const jsx_runtime_1 = require("react/jsx-runtime");
const material_1 = require("@mui/material");
const constants_1 = require("./constants");
const classes = {
root: `${constants_1.PREFIX}-skeleton-root`,
accordion: `${constants_1.PREFIX}-accordion`,
summary: `${constants_1.PREFIX}-summary`,
details: `${constants_1.PREFIX}-details`,
circle: `${constants_1.PREFIX}-circle`
};
const Root = (0, material_1.styled)(material_1.Box, {
name: constants_1.PREFIX,
slot: 'SkeletonRoot',
overridesResolver: (_props, styles) => styles.skeletonRoot
})(() => ({}));
function AccordionLessonSkeleton() {
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: classes.root }, { children: (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.accordion }, { children: (0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.summary }, { children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", variant: "text", width: "210px", height: "21px" }), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", variant: "text", width: "54px", height: "21px" })] })) })) })));
}
exports.default = AccordionLessonSkeleton;