Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 4392 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 4392 Rev 4394
Línea 4... Línea 4...
4
const EmptySection = ({
4
const EmptySection = ({
5
  Icon = null,
5
  Icon = null,
6
  message = 'No hay publicaciones',
6
  message = 'No hay publicaciones',
7
  align = 'center',
7
  align = 'center',
8
}) => {
8
}) => {
-
 
9
  
-
 
10
  const alignOptions = {
-
 
11
    left: 'flex-start',
-
 
12
    right: 'flex-end',
-
 
13
    center: 'center'
-
 
14
  }
-
 
15
 
9
  return (
16
  return (
10
    <div className='empty__section' style={{ alignItems: align }}>
17
    <div className='empty__section' style={{ alignItems: alignOptions[align] }}>
11
      {Icon && Icon}
18
      {Icon && Icon}
12
      <p>{message}</p>
19
      <p>{message}</p>
13
    </div>
20
    </div>
14
  )
21
  )
15
}
22
}