import './css/CleanUpScenesWindow.css';
import { Window, Content, Buttons, Button } from '../../../third_party';

/**
 * 清理场景窗口
 * @author tengge / https://github.com/tengge1
 */
class CleanUpScenesWindow extends React.Component {
    constructor(props) {
        super(props);

        this.handleClose = this.handleClose.bind(this);
    }

    render() {
        return <Window
            className={'CleanUpScenesWindow'}
            title={_t('Clean Up Scenes')}
            style={{ width: '400px', height: '320px' }}
            mask={false}
            onClose={this.handleClose}
               >
            <Content />
            <Buttons>
                <Button onClick={this.handleClose}>{_t('Close')}</Button>
            </Buttons>
        </Window>;
    }

    handleClose() {
        app.removeElement(this);
    }
}

export default CleanUpScenesWindow;