import '../../style/scheduleSetting.less';
import React, {Component} from 'react';
import {observer} from 'mobx-react';
import {WeaDialog} from 'ecCom';
import {FormInfo} from '../../../hrmComsPublic/index';

@observer
export default class TimeSelectionSetting extends Component{
    render(){
        const {dialog, formTarget} = this.props;
        const {form, fields} = formTarget || {};
        return (
            <WeaDialog ecId={`${this && this.props && this.props.ecId || ''}_WeaDialog@jewaqs`} {...dialog}>
                <FormInfo ecId={`${this && this.props && this.props.ecId || ''}_FormInfo@04wr26`} 
                    className='formComponent' 
                    center={false}
                    form={form} 
                    formFields={fields} />
            </WeaDialog>
        )
    }
}