import React, {
	Component
} from 'react';
import {
	observer
} from 'mobx-react';
import {
	WeaDialog
} from 'ecCom';

@observer
export default class AddData extends Component {
	constructor(props) {
		super(props);
	}

	render() {
		const {
			store
		} = this.props;
		const {
			dialogParams,
			getDialogOpButtons,
			refreshDialog
		} = store;
		const dProps = {
			...dialogParams,
			buttons: getDialogOpButtons(),
			className: 'hrmDialog'
		}
		return (
            <WeaDialog ecId={`${this && this.props && this.props.ecId || ''}_WeaDialog@gq8cm7`} {...dProps}>
				{
					dProps.coms
				}
            </WeaDialog>
		)
	}
}