UNPKG

@selfcommunity/react-ui

Version:

React UI Components to integrate a Community created with SelfCommunity Platform.

19 lines (18 loc) 963 B
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { Box, Skeleton, styled } from '@mui/material'; import { PREFIX } from './constants'; const classes = { root: `${PREFIX}-skeleton-root`, accordion: `${PREFIX}-accordion`, summary: `${PREFIX}-summary`, details: `${PREFIX}-details`, circle: `${PREFIX}-circle` }; const Root = styled(Box, { name: PREFIX, slot: 'SkeletonRoot', overridesResolver: (_props, styles) => styles.skeletonRoot })(() => ({})); export default function AccordionLessonSkeleton() { return (_jsx(Root, Object.assign({ className: classes.root }, { children: _jsx(Box, Object.assign({ className: classes.accordion }, { children: _jsxs(Box, Object.assign({ className: classes.summary }, { children: [_jsx(Skeleton, { animation: "wave", variant: "text", width: "210px", height: "21px" }), _jsx(Skeleton, { animation: "wave", variant: "text", width: "54px", height: "21px" })] })) })) }))); }