Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 3694 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
3719 stevensc 1
import React from 'react';
2
import DeleteOutline from '@mui/icons-material/DeleteOutline';
3
import { IconButton } from '@mui/material';
4
 
5
import { Link } from 'react-router-dom';
6
import { Box, Typography } from '@mui/material';
7
 
8
function NotificationOption({ link_delete, link, message, time_elapsed, onDelete }) {
9
  return (
10
    <Box
11
      sx={{
12
        display: 'flex',
13
        alignItems: 'center',
14
        justifyContent: 'space-between',
15
        gap: 2
16
      }}
17
    >
18
      <Box sx={{ display: 'inline-flex', flexDirection: 'column', mb: 1 }}>
19
        <Link to={link}>
20
          <Typography variant='body1' sx={{ textDecoration: 'underline', mb: '0 !important' }}>
21
            {message}
22
          </Typography>
23
        </Link>
24
        <Typography variant='overline'>{time_elapsed}</Typography>
25
      </Box>
26
 
27
      <IconButton onClick={() => onDelete(link_delete)}>
28
        <DeleteOutline />
29
      </IconButton>
30
    </Box>
31
  );
32
}
33
 
34
export default NotificationOption;