"use strict";

exports.__esModule = true;
exports.default = void 0;

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

var _Widget = _interopRequireDefault(require("../Widget"));

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

var _Skeleton = _interopRequireDefault(require("@mui/material/Skeleton"));

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

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

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

const PREFIX = 'SCGenericSkeleton';
const classes = {
  root: `${PREFIX}-root`,
  list: `${PREFIX}-list`
};
const Root = (0, _styles.styled)(_Widget.default)(({
  theme
}) => ({
  [`& .${classes.list}`]: {
    marginLeft: -16,
    marginRight: -16
  }
}));
/**
 * > API documentation for the Community-UI Generic Skeleton component. Learn about the available props and the CSS API.

 #### Import

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

 #### Component Name

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

 #### CSS

 |Rule Name|Global class|Description|
 |---|---|---|
 |root|.SCGenericSkeleton-root|Styles applied to the root element.|
 |list|.SCGenericSkeleton-list|Styles applied to the list element.|
 *
 */

function GenericSkeleton(props) {
  return /*#__PURE__*/_react.default.createElement(Root, _extends({
    className: classes.root
  }, props), /*#__PURE__*/_react.default.createElement(_material.CardContent, null, /*#__PURE__*/_react.default.createElement(_Skeleton.default, {
    animation: "wave",
    height: 10,
    style: {
      marginBottom: 10
    }
  }), /*#__PURE__*/_react.default.createElement(_Skeleton.default, {
    animation: "wave",
    height: 10,
    width: "80%",
    style: {
      marginBottom: 5
    }
  }), /*#__PURE__*/_react.default.createElement(_Skeleton.default, {
    animation: "wave",
    height: 10,
    width: "60%",
    style: {
      marginBottom: 5
    }
  })));
}

var _default = GenericSkeleton;
exports.default = _default;