import {
	inject,
	observer
} from 'mobx-react';
import {
	WeaTableNew
} from 'comsMobx';
const WeaTable = WeaTableNew.WeaTable;

@inject('hrmAttendanceRpSharingSetting')
@observer
class Table extends React.Component {
	constructor(props) {
		super(props);
	}

	componentDidMount() {
		this.props.hrmAttendanceRpSharingSetting.getSearchList();
	}

	render() {
		const {
			table,
			tableProps
		} = this.props.hrmAttendanceRpSharingSetting;

		return (
			<WeaTable ecId={`${this && this.props && this.props.ecId || ''}_WeaTable@bquvfs`} {...table} {...tableProps}/>
		);
	}
}

export default Table;