"use strict";

exports.__esModule = true;
exports.default = InlineComposerSkeleton;

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

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

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

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

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

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

const PREFIX = 'SCInlineComposerSkeleton';
const classes = {
  root: `${PREFIX}-root`,
  input: `${PREFIX}-input`,
  actions: `${PREFIX}-actions`,
  action: `${PREFIX}-action`,
  avatar: `${PREFIX}-avatar`
};
const Root = (0, _styles.styled)(_Widget.default, {
  name: PREFIX,
  slot: 'Root',
  overridesResolver: (props, styles) => styles.root
})(({
  theme
}) => ({
  padding: theme.spacing(),
  display: 'flex',
  flexDirection: 'row',
  justifyContent: 'space-between',
  marginBottom: theme.spacing(2),
  [`& .${classes.input}`]: {
    flexGrow: 2
  },
  [`& .${classes.actions}`]: {
    marginLeft: 15,
    marginRight: 15
  }
}));
/**
 * > API documentation for the Community-UI Inline Composer Skeleton component. Learn about the available props and the CSS API.

 #### Import

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

 #### Component Name

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

 #### CSS

 |Rule Name|Global class|Description|
 |---|---|---|
 |root|.SCInlineComposerSkeleton-root|Styles applied to the root element.|
 |input|.SCInlineComposerSkeleton-input|Styles applied to the input element.|
 |actions|.SCInlineComposerSkeleton-actions|Styles applied to the actions section.|
 |action|.SCInlineComposerSkeleton-action|Styles applied to the action section.|
 |avatar|.SCInlineComposerSkeleton-avatar|Styles applied to the avatar element.|
 *
 */

function InlineComposerSkeleton() {
  return /*#__PURE__*/_react.default.createElement(Root, {
    className: classes.root
  }, /*#__PURE__*/_react.default.createElement(_material.Box, {
    className: classes.input
  }, /*#__PURE__*/_react.default.createElement(_Skeleton.default, {
    sx: {
      height: 40
    },
    animation: "wave",
    variant: "text"
  })), /*#__PURE__*/_react.default.createElement(_material.Stack, {
    className: classes.actions,
    direction: "row",
    justifyContent: "center",
    alignItems: "center",
    spacing: 2
  }, /*#__PURE__*/_react.default.createElement(_Skeleton.default, {
    className: classes.action,
    animation: "wave",
    variant: "circular",
    width: 27,
    height: 27
  }), /*#__PURE__*/_react.default.createElement(_Skeleton.default, {
    className: classes.action,
    animation: "wave",
    variant: "circular",
    width: 27,
    height: 27
  }), /*#__PURE__*/_react.default.createElement(_Skeleton.default, {
    className: classes.action,
    animation: "wave",
    variant: "circular",
    width: 27,
    height: 27
  }), /*#__PURE__*/_react.default.createElement(_Skeleton.default, {
    className: classes.action,
    animation: "wave",
    variant: "circular",
    width: 27,
    height: 27
  })), /*#__PURE__*/_react.default.createElement(_material.Box, {
    className: classes.avatar
  }, /*#__PURE__*/_react.default.createElement(_Skeleton.default, {
    className: classes.avatar,
    animation: "wave",
    variant: "circular",
    width: 40,
    height: 40
  })));
}