"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const jsx_runtime_1 = require("react/jsx-runtime");
const styles_1 = require("@mui/material/styles");
const material_1 = require("@mui/material");
const react_intl_1 = require("react-intl");
const AvatarGroupSkeleton_1 = tslib_1.__importDefault(require("../../Skeleton/AvatarGroupSkeleton"));
const classnames_1 = tslib_1.__importDefault(require("classnames"));
const constants_1 = require("../constants");
const classes = {
    root: `${constants_1.PREFIX}-contributors-skeleton-root`,
    btnParticipants: `${constants_1.PREFIX}-btn-participants`
};
const Root = (0, styles_1.styled)(material_1.Box, {
    name: constants_1.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.|
 *
 */
function ContributorsSkeleton(props) {
    const { className = null, AvatarGroupSkeletonProps = {} } = props, rest = tslib_1.__rest(props, ["className", "AvatarGroupSkeletonProps"]);
    return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: (0, jsx_runtime_1.jsxs)(material_1.Button, Object.assign({ variant: "text", disabled: true, classes: { root: classes.btnParticipants } }, { children: [(0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: 'ui.feedObject.contributors.participants', defaultMessage: 'ui.feedObject.contributors.participants' }), ":", (0, jsx_runtime_1.jsx)(AvatarGroupSkeleton_1.default, Object.assign({}, props.AvatarGroupSkeletonProps))] })) })));
}
exports.default = ContributorsSkeleton;
