import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import { isWidthDown } from '@material-ui/core/withWidth'; import classNames from 'classnames'; import CloseIcon from '@material-ui/icons/Close'; import ExpandIcon from '@material-ui/icons/CallMade'; import MinimizeIcon from '@material-ui/icons/CallReceived'; import { withWidth, Tooltip, IconButton } from '@material-ui/core'; import styles from './panel-jss'; class FloatingPanel extends React.Component { state = { expanded: false } toggleExpand() { this.setState({ expanded: !this.state.expanded }); } render() { const { classes, openForm, closeForm, children, branch, title, extraSize, width } = this.props; const { expanded } = this.state; return (