@selfcommunity/react-ui
Version:
React UI Components to integrate a Community created with SelfCommunity Platform.
39 lines (32 loc) • 1.46 kB
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import Widget from '../Widget';
import { styled } from '@mui/material/styles';
import { CardContent, ListItem } from '@mui/material';
import List from '@mui/material/List';
import GroupSkeleton from '../Group/Skeleton';
const PREFIX = 'SCUserSubscribedGroupsWidgetSkeleton';
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 {UserSubscribedGroupsWidgetSkeleton} 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|.SCUserSubscribedGroupsWidget-skeleton-root|Styles applied to the root element.|
*
*/
export default function UserSubscribedGroupsWidgetSkeleton(props) {
return (_jsxs(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(GroupSkeleton, { elevation: 0 }) }, index))) })) }), ");"] })));
}