"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 CommentObject_1 = require("../CommentObject");
const material_1 = require("@mui/material");
const constants_1 = require("./constants");
const classes = {
    root: `${constants_1.PREFIX}-skeleton-root`
};
const Root = (0, styles_1.styled)(material_1.Box, {
    name: constants_1.PREFIX,
    slot: 'SkeletonRoot'
})(() => ({}));
/**
 * > API documentation for the Community-JS Comments Object Skeleton component. Learn about the available props and the CSS API.

 #### Import

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

 #### Component Name

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

 #### CSS

 |Rule Name|Global class|Description|
 |---|---|---|
 |root|.SCCommentsObject-skeleton-root|Styles applied to the root element.|
 *
 */
function CommentsObjectSkeleton(props) {
    const { count = 3, CommentObjectSkeletonProps = {} } = props, rest = tslib_1.__rest(props, ["count", "CommentObjectSkeletonProps"]);
    return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: classes.root }, rest, { children: [...Array(count)].map((comment, index) => ((0, jsx_runtime_1.jsx)(CommentObject_1.CommentObjectSkeleton, Object.assign({}, CommentObjectSkeletonProps), index))) })));
}
exports.default = CommentsObjectSkeleton;
