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


@observer
export default class SearchRadio extends Component {
    render() {
        const {store} = this.props;
        const {config, radioChange} = store;
        return (
            <div>
                 <WeaRadioGroup ecId={`${this && this.props && this.props.ecId || ''}_WeaRadioGroup@d6yf37`} config={toJS(config)} onChange = {(data) => radioChange(data)} border style={{margin:'20px 10px'}}/>
            </div>
        )
    }
}
