import React from 'react'; import UploadHistory from '../upload-history'; interface State { history: boolean } export default class TopMenu extends React.Component<{}, State> { state: State = { history: false }; toggleHistory = (e?: React.MouseEvent) => { if (e) e.preventDefault(); const { history } = this.state; this.setState({ history: !history }); }; render() { const { history } = this.state; return <>
{history &&