blob: cbe88967c46f2fcf895e1023398267509d27dae4 (
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
40
|
import {
Card,
CardMedia,
CardContent,
Typography,
CardActions,
Button,
} from '@mui/material';
import styles from './styles';
function SectorCard({
title,
description,
coverImage,
informationUrl,
layoutType,
}) {
const { card, cardMedia } = styles;
return (
<Card sx={card}>
<CardMedia {...cardMedia} image={coverImage.image} alt={coverImage.alt} />
<CardContent sx={layoutType === 'desktop' ? { height: 190 } : null}>
<Typography gutterBottom variant="h5" component="div">
{title}
</Typography>
<Typography variant="body2" color="text.secondary">
{description}
</Typography>
</CardContent>
<CardActions>
<Button href={informationUrl} target="__blank" size="small">
Informações
</Button>
</CardActions>
</Card>
);
}
export default SectorCard;
|