UNPKG

@selfcommunity/react-templates

Version:

React Templates Components to integrate a Community created with SelfCommunity.

36 lines (29 loc) 1.29 kB
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import React from 'react'; import { styled } from '@mui/material'; import { FeedSkeleton, GenericSkeleton, NotificationSkeleton } from '@selfcommunity/react-ui'; import { PREFIX } from './constants'; const classes = { root: `${PREFIX}-skeleton-root` }; const Root = styled(FeedSkeleton, { name: PREFIX, slot: 'SkeletonRoot' })(() => ({})); /** * > API documentation for the Community-JS Notification Feed Skeleton Template. Learn about the available props and the CSS API. #### Import ```jsx import {NotificationFeedSkeleton} from '@selfcommunity/react-templates'; ``` #### Component Name The name `SCNotificationFeedTemplate-skeleton-root` can be used when providing style overrides in the theme. #### CSS |Rule Name|Global class|Description| |---|---|---| |root|.SCNotificationFeedTemplate-skeleton-root|Styles applied to the root element.| * */ export default function NotificationFeedSkeleton() { return (_jsx(Root, Object.assign({ className: classes.root, sidebar: _jsxs(React.Fragment, { children: [_jsx(GenericSkeleton, { sx: { mb: 2 } }), _jsx(GenericSkeleton, { sx: { mb: 2 } })] }) }, { children: Array.from({ length: 5 }).map((e, i) => (_jsx(NotificationSkeleton, {}, i))) }))); }