text: import React from 'react';
  import { withRouter } from 'react-router-dom';
  import IconButton from '@material-ui/core/IconButton';
  
  const IconLinkButton = (props) => {
    const {
      history,
      location,
      match,
      staticContext,
      to,
      onClick,
      ...rest
    } = props
    return (
      <IconButton
        {...rest}
        onClick={(event) => {
          onClick && onClick(event)
          history.push(to)
        }}
      />
    )
  }
  
  export default withRouter(IconLinkButton)
  