import React from 'react';
import Icon from '@mdi/react';
import { mdiForum } from '@mdi/js';
import { Badge } from '@material-ui/core';
import { useTheme } from '@material-ui/styles';
import { FloatingButton } from '@tecsinapse/ui-kit/build/Buttons/FloatingButton';

var Minimized = function Minimized(_ref) {
  var maximize = _ref.maximize,
      notifyNumber = _ref.notifyNumber;
  var theme = useTheme();
  return React.createElement(Badge, {
    color: "error",
    badgeContent: notifyNumber
  }, React.createElement(FloatingButton, {
    onClick: maximize,
    variant: "primary",
    size: "large"
  }, React.createElement(Icon, {
    path: mdiForum,
    size: 1.25,
    color: theme.palette.primary.contrastText
  })));
};

export default Minimized;