import {
	WeaTop,
	WeaRightMenu,
} from 'ecCom';
import {
	observer
} from 'mobx-react';
import Search from './Search';
import Table from './Table';

@observer
export default class Top extends React.Component {
	constructor(props) {
		super(props);
	}

	render() {
		const {
			store
		} = this.props, {
			TOP,
			top,
			topButtons,
			dropMenuDatas
		} = store;

		return (
			<WeaTop ecId={`${this && this.props && this.props.ecId || ''}_WeaTop@6dqlri`} 
               {...TOP}
               {...top}
               buttons={topButtons}
               dropMenuDatas={dropMenuDatas}
            >
            	<WeaRightMenu ecId={`${this && this.props && this.props.ecId || ''}_WeaRightMenu@owf46e`} datas={dropMenuDatas}>
            		<Search ecId={`${this && this.props && this.props.ecId || ''}_Search@9t9my9`} store={store}/>
            		<Table ecId={`${this && this.props && this.props.ecId || ''}_Table@8tkhyi`} store={store}/>
            	</WeaRightMenu>
            </WeaTop>
		);
	}
}