import { Grid, Box, Typography, Link } from '@mui/material';
import theme from '../../theme/theme.js';
const Alert = (props) => {
const styles = {
section: {
margin: theme.spacing(2),
padding: theme.spacing(3),
backgroundColor: theme.palette.error[50],
borderLeft: 4,
borderColor: theme.palette.error[500],
borderRadius: `0 ${theme.spacing(1)} ${theme.spacing(1)} 0`
},
text: {
color: theme.palette.error[800]
}
}
const content = {
'Typography1-1': 'Banner example',
'Link1-1': <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.93341 8.00008L13.1334 3.80008C13.4001 3.53341 13.4001 3.13341 13.1334 2.86675C12.8667 2.60008 12.4667 2.60008 12.2001 2.86675L8.00008 7.06675L3.80008 2.86675C3.53341 2.60008 3.13341 2.60008 2.86675 2.86675C2.60008 3.13341 2.60008 3.53341 2.86675 3.80008L7.06675 8.00008L2.86675 12.2001C2.73341 12.3334 2.66675 12.4667 2.66675 12.6667C2.66675 13.0667 2.93341 13.3334 3.33341 13.3334C3.53341 13.3334 3.66675 13.2667 3.80008 13.1334L8.00008 8.93341L12.2001 13.1334C12.3334 13.2667 12.4667 13.3334 12.6667 13.3334C12.8667 13.3334 13.0001 13.2667 13.1334 13.1334C13.4001 12.8667 13.4001 12.4667 13.1334 12.2001L8.93341 8.00008Z" fill="#5D221B"/></svg>,
...props.content
}
return (
<Box component="section" sx={styles.section}>
<Grid container alignItems="center" justifyContent="space-between">
<Grid item>
<Typography variant="body1" sx={styles.text}>{content['Typography1-1']}</Typography>
</Grid>
<Grid item>
<Link href="#">{content['Link1-1']}</Link>
</Grid>
</Grid>
</Box>
)
}
export default Alert;