/
GridItem.js
31 lines (29 loc) · 965 Bytes
/
GridItem.js
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
import {Grid, List, ListItem, ListItemIcon, ListItemText, Paper} from "@mui/material";
import React from "react";
import {styled} from "@mui/material/styles";
const Item = styled(Paper)(({ theme }) => ({
...theme.typography.body2,
backgroundColor: theme.palette.background.paper,
color: theme.palette.text.secondary,
height: 70,
lineHeight: '60px',
}));
export default function GridItem(props){
return (
<Grid item xs={props.xs} md={props.md}>
<Item>
<List dense={true}>
<ListItem>
<ListItemIcon>
{props.icon}
</ListItemIcon>
<ListItemText
primary={props.primaryText}
secondary={props.secondaryText}
/>
</ListItem>
</List>
</Item>
</Grid>
);
}