import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { styled } from '@mui/material/styles';
import Widget from '../Widget';
import { CardContent, List, ListItem } from '@mui/material';
import { PollSnippetSkeleton } from './PollSnippet';
import Skeleton from '@mui/material/Skeleton';
import { PREFIX } from './constants';
const classes = {
    root: `${PREFIX}-skeleton-root`,
    list: `${PREFIX}-list`
};
const Root = styled(Widget, {
    name: PREFIX,
    slot: 'SkeletonRoot'
})(() => ({}));
/**
 * > API documentation for the Community-JS Poll Suggestion Widget Skeleton component. Learn about the available props and the CSS API.

 #### Import

 ```jsx
 import {PollSuggestionWidgetSkeleton} from '@selfcommunity/react-ui';
 ```

 #### Component Name

 The name `SCPollSuggestionWidget-skeleton-root` can be used when providing style overrides in the theme.

 #### CSS

 |Rule Name|Global class|Description|
 |---|---|---|
 |root|.SCPollSuggestionWidget-skeleton-root|Styles applied to the root element.|
 |list|.SCPollSuggestionWidget-list|Styles applied to the list element.|
 *
 */
export default function PollSuggestionWidgetSkeleton(props) {
    return (_jsx(Root, Object.assign({ className: classes.root }, props, { children: _jsxs(CardContent, { children: [_jsx(Skeleton, { animation: "wave", height: 10, width: 120 }), _jsx(List, Object.assign({ className: classes.list }, { children: [...Array(4)].map((user, index) => (_jsx(ListItem, { children: _jsx(PollSnippetSkeleton, { elevation: 0 }) }, index))) }))] }) })));
}
