import React from 'react'; import { Typography, Card, Container, Box, ExpansionPanelSummary, ExpansionPanel, ExpansionPanelDetails, } from "@material-ui/core"; import { makeStyles } from "@material-ui/core/styles"; import TimerIcon from '@material-ui/icons/Timer'; import ExpandMoreIcon from '@material-ui/icons/ExpandMore'; const useStyles = makeStyles(theme => ({ item: { backgroundColor: theme.palette.secondary.dark, margin: theme.spacing(3), width: theme.spacing(60), '& .MuiBox-root': { display: 'flex', justifyContent: 'center', alignItems: 'center', }, '& .MuiTypography-h2': { color: theme.palette.orange.main, margin: theme.spacing(2), }, }, })); const Solution = ({ solution }) => { const classes = useStyles(); const author = solution.author? solution.author : 'anonymous'; return ( { solution.result } }> By {author} Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit leo lobortis eget. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit leo lobortis eget. ) }; export default Solution;