// @flow /* eslint-disable import/no-extraneous-dependencies */ import React from 'react' import { Link } from 'react-router-dom' // flow-disable-next-line import Button from '@material-ui/core/Button' // flow-disable-next-line import { withStyles } from '@material-ui/core/styles' const styles = { link: { textDecoration: 'none', color: '#ddd', '&:hover': { color: '#ccc', }, }, container: { textAlign: 'center' }, icon: { width: 100, height: 100 }, } const Inner = ({ classes, label, icon: Icon, }: { classes: Object, label: string, icon: Function, }) => (

) const HeroButtonJSX = ({ classes, dest, newTab, hardLink, icon, label, ...rest }: { dest: any, hardLink?: boolean, newTab?: boolean, icon: Function, label: string, classes: Object, label: string, }) => { if (newTab || hardLink) { const aProps: Object = { href: dest, className: classes.link, } if (newTab) { aProps.target = '_blank' } return ( ) } return ( ) } const HeroButton = withStyles(styles)(HeroButtonJSX) export default HeroButton