Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 3101 | | 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 { Box, styled, Typography } from '@mui/material';
3
 
4
const EmptyContainer = styled(Box)`
5
  display: flex;
6
  box-sizing: border-box;
7
  justify-content: center;
8
  flex-direction: column;
9
  padding: 1rem;
10
  width: 100%;
11
  flex-grow: 1;
12
`;
13
 
14
const EmptySection = ({ Icon = null, message = 'No hay publicaciones', align = 'left' }) => {
15
  const alignOptions = {
16
    left: 'flex-start',
17
    right: 'flex-end',
18
    center: 'center'
19
  };
20
 
21
  return (
22
    <EmptyContainer alignItems={alignOptions[align]}>
23
      {Icon && Icon}
24
      <Typography sx={{ fontWeight: 600 }}>{message}</Typography>
25
    </EmptyContainer>
26
  );
27
};
28
 
29
export default EmptySection;