"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const jsx_runtime_1 = require("react/jsx-runtime");
const List_1 = tslib_1.__importDefault(require("@mui/material/List"));
const styles_1 = require("@mui/material/styles");
const Skeleton_1 = tslib_1.__importDefault(require("../PrivateMessageSnippetItem/Skeleton"));
const material_1 = require("@mui/material");
const constants_1 = require("./constants");
const classes = {
    root: `${constants_1.PREFIX}-skeleton-root`,
    searchBar: `${constants_1.PREFIX}-search-bar`,
    button: `${constants_1.PREFIX}-button`,
    list: `${constants_1.PREFIX}-list`
};
const Root = (0, styles_1.styled)(material_1.Card, {
    name: constants_1.PREFIX,
    slot: 'SkeletonRoot'
})(() => ({}));
/**
 * > API documentation for the Community-JS PrivateMessageSnippets Skeleton component. Learn about the available props and the CSS API.

 #### Import

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

 #### Component Name

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

 #### CSS

 |Rule Name|Global class|Description|
 |---|---|---|
 |root|.SCPrivateMessageSnippets-skeleton-root|Styles applied to the root element.|
 |searchBar|.SCPrivateMessageSnippets-search-bar|Styles applied to the search bar element.|
 |button|.SCPrivateMessageSnippets-button|Styles applied to the button element.|
 |list|.SCPrivateMessageSnippets-list|Styles applied to the list element.|
 *
 */
function PrivateMessageSnippetsSkeleton(props) {
    return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: classes.root }, props, { children: (0, jsx_runtime_1.jsxs)(material_1.CardContent, { children: [(0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "column", justifyContent: "center", spacing: 1, alignItems: "center" }, { children: [(0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ variant: "outlined", size: "medium", disabled: true, className: classes.button }, { children: (0, jsx_runtime_1.jsx)(material_1.Skeleton, { height: 20, width: 100, variant: 'rectangular' }) })), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { height: 25, width: '100%', variant: 'rounded', className: classes.searchBar })] })), (0, jsx_runtime_1.jsx)(List_1.default, Object.assign({ className: classes.list }, { children: [...Array(6)].map((category, index) => ((0, jsx_runtime_1.jsx)(Skeleton_1.default, { elevation: 0 }, index))) }))] }) })));
}
exports.default = PrivateMessageSnippetsSkeleton;
