import React, {Component} from 'react';
import {
	observer
} from 'mobx-react';
import {Spin, Button, Row, Col} from 'antd';
import {WeaLocaleProvider, WeaProgress} from 'ecCom';
const getLabel = WeaLocaleProvider.getLabel;

@observer
export default class Right extends Component{
    render(){
        const {store} = this.props;
        const {spinning, toJS, upgradeResult, itemClick, selectedNode, progress} = store;
        let {items} = toJS(upgradeResult);
        return (
            <div className='upgradeResult'>
                <div className='content'>
                    <div className='spinContainer'>
                        <div className='complateIcon icon-coms-Upload-successfully'></div>
                        <div className='msg'>{getLabel('505883','升级完成')}</div>
                    </div>
                    <div className='goBack'>
                        <Button ecId={`${this && this.props && this.props.ecId || ''}_Button@1jpmx1`} type='default' onClick={() => itemClick(toJS(selectedNode))}>{`<< ${getLabel('1290','返回')}`}</Button>
                    </div>
                </div>
            </div>
        )
    }
}