import {
	toJS
} from 'mobx';
import {
	observer,
} from 'mobx-react';
import {
	WeaLocaleProvider,
} from 'ecCom';
import ImportFail from "./ImportFail.js";
import ImportResult from "./ImportResult.js";
const getLabel = WeaLocaleProvider.getLabel;

@observer
export default class DatasProcess extends React.Component {
	render() {
		const {
			store
		} = this.props, {
			isPayrollImportSuccess
		} = store;

		return (
			<div className='process-info'>
				{
					isPayrollImportSuccess ? <ImportResult ecId={`${this && this.props && this.props.ecId || ''}_ImportResult@oeqzik`} store={store}/> : <ImportFail ecId={`${this && this.props && this.props.ecId || ''}_ImportFail@lov4ws`} store={store}/>
				}
			</div>
		);
	}
}