import React from 'react';
import { withRouter } from 'react-router-dom';
import { Button } from 'reactstrap';
import './MyButton.css';
const myButton = withRouter(( props ) => (
<Button className={`myButton ${props.class}`}
onClick={
() => { props.history.push(props.url);}
}
>
{props.text}
{(props.match.url ==='/')? <span className="triangle" key='Toraifōsu'></span> : null}
</Button>
)
);
export default myButton;