UNPKG

@selfcommunity/react-ui

Version:

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

38 lines (31 loc) 1.5 kB
import { jsx as _jsx } from "react/jsx-runtime"; import Widget from '../Widget'; import { CardContent, ListItem, List, styled } from '@mui/material'; import CourseSkeleton from '../Course/Skeleton'; import { SCCourseTemplateType } from '../../types/course'; const PREFIX = 'SCUserCreatedCoursesWidgetSkeleton'; const classes = { root: `${PREFIX}-skeleton-root`, list: `${PREFIX}-list` }; const Root = styled(Widget, { name: PREFIX, slot: 'SkeletonRoot' })(() => ({})); /** * > API documentation for the Community-JS User Profile Categories Followed Widget Skeleton component. Learn about the available props and the CSS API. #### Import ```jsx import {UserCreatedCoursesWidgetSkeleton} from '@selfcommunity/react-ui'; ``` #### Component Name The name `SCUserCategoriesFollowedWidget-skeleton-root` can be used when providing style overrides in the theme. #### CSS |Rule Name|Global class|Description| |---|---|---| |root|.SCUserCreatedCoursesWidget-skeleton-root|Styles applied to the root element.| * */ export default function UserCreatedCoursesWidgetSkeleton(props) { return (_jsx(Root, Object.assign({ className: classes.root }, props, { children: _jsx(CardContent, { children: _jsx(List, Object.assign({ className: classes.list }, { children: [...Array(3)].map((category, index) => (_jsx(ListItem, { children: _jsx(CourseSkeleton, { template: SCCourseTemplateType.SNIPPET, CourseProps: { userProfileSnippet: true }, elevation: 0 }) }, index))) })) }) }))); }