"use strict";

exports.__esModule = true;
exports.default = FeedSkeleton;

var _react = _interopRequireDefault(require("react"));

var _styles = require("@mui/material/styles");

var _material = require("@mui/material");

var _Skeleton = require("../Skeleton");

var _classnames = _interopRequireDefault(require("classnames"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

const PREFIX = 'SCFeedSkeleton';
const classes = {
  root: `${PREFIX}-root`,
  left: `${PREFIX}-left`,
  right: `${PREFIX}-right`
};
const Root = (0, _styles.styled)(_material.Grid, {
  name: PREFIX,
  slot: 'Root',
  overridesResolver: (props, styles) => styles.root
})(({
  theme
}) => ({
  marginTop: theme.spacing(2),
  [`& .${classes.left}`]: {
    padding: '3px'
  }
}));

/**
 * > API documentation for the Community-UI Feed Skeleton component. Learn about the available props and the CSS API.

 #### Import

 ```jsx
 import {FeedSkeleton} from '@selfcommunity/ui';
 ```

 #### Component Name

 The name `SCFeedSkeleton` can be used when providing style overrides in the theme.

 #### CSS

 |Rule Name|Global class|Description|
 |---|---|---|
 |root|.SCFeedSkeleton-root|Styles applied to the root element.|
 |left|.SCFeedSkeleton-left|Styles applied to the left section.|
 |right|.SCFeedSkeleton-right|Styles applied to the right section.|
 *
 */
function FeedSkeleton(props) {
  // PROPS
  const {
    children = /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Skeleton.GenericSkeleton, {
      sx: {
        mb: 2
      }
    }), /*#__PURE__*/_react.default.createElement(_Skeleton.GenericSkeleton, {
      sx: {
        mb: 2
      }
    }), /*#__PURE__*/_react.default.createElement(_Skeleton.GenericSkeleton, {
      sx: {
        mb: 2
      }
    })),
    sidebar = /*#__PURE__*/_react.default.createElement(_Skeleton.GenericSkeleton, null),
    className
  } = props;
  return /*#__PURE__*/_react.default.createElement(Root, {
    container: true,
    spacing: 2,
    className: (0, _classnames.default)(classes.root, className)
  }, /*#__PURE__*/_react.default.createElement(_material.Grid, {
    item: true,
    xs: 12,
    md: 7
  }, children), /*#__PURE__*/_react.default.createElement(_material.Hidden, {
    smDown: true
  }, /*#__PURE__*/_react.default.createElement(_material.Grid, {
    item: true,
    xs: 12,
    md: 5
  }, sidebar)));
}