import { observer } from 'mobx-react';
import React, {Component} from 'react';
import { WeaDialog } from 'ecCom';
import FormInfo from '../../../coms/FormInfo';

@observer
export default class MaintenanceLevel extends Component{
    render(){
        const {store} = this.props;
        const {rightLevelDialogProps, formTarget} = store;
        const {
			rightLevelForm: form,
			rightLevelFormFields: fields,
		} = formTarget;

        return (
            <WeaDialog ecId={`${this && this.props && this.props.ecId || ''}_WeaDialog@ua7kdn`} {...rightLevelDialogProps}>
                <FormInfo ecId={`${this && this.props && this.props.ecId || ''}_FormInfo@j3co6c`} center={false} form={form} formFields={fields}/>
            </WeaDialog>
        )
    }
}