"use strict";

exports.__esModule = true;
exports.default = CommentObjectSkeleton;

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 }; }

const PREFIX = 'SCCommentObjectSkeleton';
const classes = {
  root: `${PREFIX}-root`,
  avatarWrap: `${PREFIX}-avatar-wrap`
};
const Root = (0, _styles.styled)(_material.Box, {
  name: PREFIX,
  slot: 'Root',
  overridesResolver: (props, styles) => styles.root
})(({
  theme
}) => ({
  marginBottom: theme.spacing(3),
  [`& .${classes.avatarWrap}`]: {
    minWidth: 46
  }
}));

function CommentObjectSkeleton(props) {
  return /*#__PURE__*/_react.default.createElement(Root, null, /*#__PURE__*/_react.default.createElement(_material.ListItem, {
    button: false,
    alignItems: "flex-start"
  }, /*#__PURE__*/_react.default.createElement(_material.ListItemAvatar, {
    classes: {
      root: classes.avatarWrap
    }
  }, /*#__PURE__*/_react.default.createElement(_Skeleton.default, {
    animation: "wave",
    variant: "circular",
    width: 35,
    height: 35
  })), /*#__PURE__*/_react.default.createElement(_material.ListItemText, {
    disableTypography: true,
    secondary: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Widget.default, props, /*#__PURE__*/_react.default.createElement(_material.CardContent, null, /*#__PURE__*/_react.default.createElement(_Skeleton.default, {
      animation: "wave",
      height: 10,
      width: "80%",
      style: {
        marginBottom: 6
      }
    }), /*#__PURE__*/_react.default.createElement(_Skeleton.default, {
      animation: "wave",
      height: 10,
      width: "40%"
    }))))
  })));
}