UNPKG

@selfcommunity/react-ui

Version:

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

37 lines (30 loc) 1.22 kB
import { __rest } from "tslib"; import { jsx as _jsx } from "react/jsx-runtime"; import { Box, styled } from '@mui/material'; import { PREFIX } from './constants'; import LessonCommentObjectSkeleton from '../LessonCommentObject/Skeleton'; const classes = { root: `${PREFIX}-skeleton-root` }; const Root = styled(Box, { name: PREFIX, slot: 'SkeletonRoot' })(() => ({})); /** * > API documentation for the Community-JS Comments Object Skeleton component. Learn about the available props and the CSS API. #### Import ```jsx import {LessonCommentObjectsSkeleton} from '@selfcommunity/react-ui'; ``` #### Component Name The name `SCLessonCommentObjects-skeleton-root` can be used when providing style overrides in the theme. #### CSS |Rule Name|Global class|Description| |---|---|---| |root|.SCLessonCommentObjects-skeleton-root|Styles applied to the root element.| * */ export default function LessonCommentObjectsSkeleton(props) { const { count = 3 } = props, rest = __rest(props, ["count"]); return (_jsx(Root, Object.assign({ className: classes.root }, rest, { children: [...Array(count)].map((comment, index) => (_jsx(LessonCommentObjectSkeleton, { elevation: 0 }, index))) }))); }