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 = ({ text, value }) => { const classes = useStyles(); return (
{value}
{text}
); }; export default Highlight;