import * as React from 'react'; import classNames from 'classnames' export class GridPage extends React.Component { constructor( props: iAXDataGridPageProps ) { super( props ); } public shouldComponentUpdate( nextProps, nextState ) { let sameProps = false; if ( this.props.mounted !== nextProps.mounted || this.props.pageButtons !== nextProps.pageButtons || this.props.styles !== nextProps.styles ) { sameProps = true; } return sameProps; } public render() { const { mounted, styles, pageButtonsContainerWidth, pageButtons, pageButtonHeight, onClickPageButton } = this.props; if ( !mounted ) return null; return (
{pageButtons.map( ( button, bi ) => { return } )}
) } }