import '../../style/matrixDataMaintenance.less';
import React, {
	Component
} from 'react';
import {
	observer
} from 'mobx-react';
import {
	Pagination,
} from 'antd';
import * as mobx from 'mobx';
const {
	toJS
} = mobx;

@observer
export default class DataList extends Component {
	render() {
		const {
			 store,
		} = this.props;
		const {
			pagination,
			currentPage,
			defaultPageSize,
		} = store;
		return (
			<div className='pagination'>
				<Pagination ecId={`${this && this.props && this.props.ecId || ''}_Pagination@vgyjp0`} current={currentPage} defaultPageSize={defaultPageSize} {...toJS(pagination)}/>
			</div>
		);
	}
}