import { __rest } from "tslib";
import { jsx as _jsx } from "react/jsx-runtime";
import { styled } from '@mui/material/styles';
import { Box, Grid } from '@mui/material';
import CategorySkeleton from '../Category/Skeleton';
import classNames from 'classnames';
import { PREFIX } from './constants';
const classes = {
    root: `${PREFIX}-skeleton-root`,
    categories: `${PREFIX}-categories`
};
const Root = styled(Box, {
    name: PREFIX,
    slot: 'SkeletonRoot'
})(() => ({}));
/**
 * > API documentation for the Community-JS Categories Skeleton component. Learn about the available props and the CSS API.

 #### Import

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

 #### Component Name

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

 #### CSS

 |Rule Name|Global class|Description|
 |---|---|---|
 |root|.SCCategories-skeleton-root|Styles applied to the root element.|
 |categories|.SCCategories-categories|Styles applied to the categories' element.|
 *
 */
export default function CategoriesSkeleton(inProps) {
    const { className, CategorySkeletonProps = {} } = inProps, rest = __rest(inProps, ["className", "CategorySkeletonProps"]);
    return (_jsx(Root, Object.assign({ className: classNames(classes.root, className) }, rest, { children: _jsx(Grid, Object.assign({ container: true, spacing: { xs: 3 }, className: classes.categories }, { children: [...Array(15)].map((category, index) => (_jsx(Grid, Object.assign({ item: true, xs: 12, sm: 6, md: 4 }, { children: _jsx(CategorySkeleton, Object.assign({ elevation: 0, variant: 'outlined' }, CategorySkeletonProps)) }), index))) })) })));
}
