// Copyright (C) The Arvados Authors. All rights reserved. // // SPDX-License-Identifier: AGPL-3.0 import React from 'react'; import classNames from 'classnames'; import { withRouter, RouteComponentProps } from 'react-router'; import { StyleRulesCallback, Button, WithStyles, withStyles } from "@material-ui/core"; import { ReRunProcessIcon } from 'components/icon/icon'; type CssRules = 'button' | 'buttonRight'; const styles: StyleRulesCallback = theme => ({ button: { boxShadow: 'none', padding: '2px 10px 2px 5px', fontSize: '0.75rem' }, buttonRight: { marginLeft: 'auto', }, }); interface RefreshButtonProps { onClick?: () => void; } export const RefreshButton = ({ history, classes, onClick }: RouteComponentProps & WithStyles & RefreshButtonProps) => ; export default withStyles(styles)(withRouter(RefreshButton));