blob: 8e11c342bd068b178c44350f8d1e48e56aeda2e8 (
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, {useState} from 'react';
import {makeStyles} from '@material-ui/core/styles';
interface PropTypes {
text: string;
value: any;
}
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;
|