import './panel.scss'; export default class PanelLayout extends PureComponent { static propTypes = { title: PropTypes.string, icon: PropTypes.string, children: PropTypes.node, }; render() { const {title, icon, children} = this.props; return (
{icon && } {title}
{children}
); }; };