File size: 778 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
import { makeStyles } from "@material-ui/core";
const SelectButton = ({ children, selected, onClick }) => {
const useStyles = makeStyles({
selectbutton: {
border: "1px solid gold",
borderRadius: 5,
padding: 10,
paddingLeft: 20,
paddingRight: 20,
fontFamily: "Montserrat",
cursor: "pointer",
backgroundColor: selected ? "gold" : "",
color: selected ? "black" : "",
fontWeight: selected ? 700 : 500,
"&:hover": {
backgroundColor: "gold",
color: "black",
},
width: "22%",
// margin: 5,
},
});
const classes = useStyles();
return (
<span onClick={onClick} className={classes.selectbutton}>
{children}
</span>
);
};
export default SelectButton;
|