@selfcommunity/react-templates
Version:
React Templates Components to integrate a Community created with SelfCommunity.
40 lines (33 loc) • 1.69 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const jsx_runtime_1 = require("react/jsx-runtime");
const react_1 = tslib_1.__importDefault(require("react"));
const material_1 = require("@mui/material");
const react_ui_1 = require("@selfcommunity/react-ui");
const constants_1 = require("./constants");
const classes = {
root: `${constants_1.PREFIX}-skeleton-root`
};
const Root = (0, material_1.styled)(react_ui_1.FeedSkeleton, {
name: constants_1.PREFIX,
slot: 'SkeletonRoot'
})(() => ({}));
/**
* > API documentation for the Community-JS Group Feed Skeleton Template. Learn about the available props and the CSS API.
#### Import
```jsx
import {GroupFeedSkeleton} from '@selfcommunity/react-templates';
```
#### Component Name
The name `SCGroupFeedTemplate-skeleton-root` can be used when providing style overrides in the theme.
#### CSS
|Rule Name|Global class|Description|
|---|---|---|
|root|.SCGroupFeedTemplate-skeleton-root|Styles applied to the root element.|
*
*/
function EventFeedSkeleton() {
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: classes.root, sidebar: (0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_ui_1.GenericSkeleton, { sx: { mb: 2 } }), (0, jsx_runtime_1.jsx)(react_ui_1.GenericSkeleton, { sx: { mb: 2 } })] }) }, { children: [(0, jsx_runtime_1.jsx)(react_ui_1.InlineComposerWidgetSkeleton, {}), Array.from({ length: 5 }).map((e, i) => ((0, jsx_runtime_1.jsx)(react_ui_1.FeedObjectSkeleton, { template: react_ui_1.SCFeedObjectTemplateType.DETAIL }, i)))] })));
}
exports.default = EventFeedSkeleton;
;