import { __rest } from "tslib";
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { styled } from '@mui/material/styles';
import { Box, Button } from '@mui/material';
import { FormattedMessage } from 'react-intl';
import AvatarGroupSkeleton from '../../Skeleton/AvatarGroupSkeleton';
import classNames from 'classnames';
import { PREFIX } from '../constants';
const classes = {
    root: `${PREFIX}-contributors-skeleton-root`,
    btnParticipants: `${PREFIX}-btn-participants`
};
const Root = styled(Box, {
    name: PREFIX,
    slot: 'ContributorsSkeletonRoot'
})(() => ({}));
/**
 * > API documentation for the Community-JS Contributors Skeleton component. Learn about the available props and the CSS API.

 #### Import

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

 #### Component Name

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

 #### CSS

 |Rule Name|Global class|Description|
 |---|---|---|
 |root|.SCFeedObject-contributors-skeleton-root|Styles applied to the root element.|
 *
 */
export default function ContributorsSkeleton(props) {
    const { className = null, AvatarGroupSkeletonProps = {} } = props, rest = __rest(props, ["className", "AvatarGroupSkeletonProps"]);
    return (_jsx(Root, Object.assign({ className: classNames(classes.root, className) }, rest, { children: _jsxs(Button, Object.assign({ variant: "text", disabled: true, classes: { root: classes.btnParticipants } }, { children: [_jsx(FormattedMessage, { id: 'ui.feedObject.contributors.participants', defaultMessage: 'ui.feedObject.contributors.participants' }), ":", _jsx(AvatarGroupSkeleton, Object.assign({}, props.AvatarGroupSkeletonProps))] })) })));
}
