Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 2917 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

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