// @flow import React, {Component} from 'react'; import {Icon} from 'antd'; import './Sidebar.css'; type Props = { onClose?: () => void, width?: number, children: any, }; export default class Sidebar extends Component { render() { return (
{this.props.onClose && (
)} {this.props.children}
); } }