blob: ebc3f56040861035968871c75966311dd4f58b5a (
plain)
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
36
37
38
39
|
import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
interface PropTypes {
text: string;
value: string | number;
}
const useStyles = makeStyles({
root: {
position: 'relative'
},
menuButton: {
width: 200,
height: 50,
textAlign: 'center'
},
menuNumber: {
fontWeight: 800,
color: 'black'
},
menuText: {
color: 'darkgray'
}
});
const Highlight: React.FC<PropTypes> = ({ text, value }) => {
const classes = useStyles();
return (
<div className={classes.menuButton}>
<div className={classes.menuNumber}>{value}</div>
<div className={classes.menuText}>{text}</div>
</div>
);
};
export default Highlight;
|