"use strict";

exports.__esModule = true;
exports.default = MessageSkeleton;

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

var _Card = _interopRequireDefault(require("@mui/material/Card"));

var _List = _interopRequireDefault(require("@mui/material/List"));

var _ListItem = _interopRequireDefault(require("@mui/material/ListItem"));

var _ListItemAvatar = _interopRequireDefault(require("@mui/material/ListItemAvatar"));

var _ListItemText = _interopRequireDefault(require("@mui/material/ListItemText"));

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

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

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

const PREFIX = 'SCMessageSkeleton';
const classes = {
  list: `${PREFIX}-list`
};
const Root = (0, _styles.styled)(_Card.default)(({
  theme
}) => ({
  maxWidth: 700,
  [`& .${classes.list}`]: {
    marginLeft: -16,
    marginRight: -16
  }
}));

function MessageSkeleton(props) {
  const m = /*#__PURE__*/_react.default.createElement(_ListItem.default, null, /*#__PURE__*/_react.default.createElement(_ListItemAvatar.default, null, /*#__PURE__*/_react.default.createElement(_Skeleton.default, {
    animation: "wave",
    variant: "circular",
    width: 40,
    height: 40
  })), /*#__PURE__*/_react.default.createElement(_ListItemText.default, {
    primary: /*#__PURE__*/_react.default.createElement(_Skeleton.default, {
      animation: "wave",
      height: 10,
      width: 120,
      style: {
        marginBottom: 10
      }
    }),
    secondary: /*#__PURE__*/_react.default.createElement(_Skeleton.default, {
      animation: "wave",
      height: 10,
      width: 70,
      style: {
        marginBottom: 10
      }
    })
  }));

  return /*#__PURE__*/_react.default.createElement(Root, props, /*#__PURE__*/_react.default.createElement(_List.default, null, m));
}