Proyectos de Subversion LeadersLinked - Backend

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
15762 stevensc 1
/* eslint-disable react/prop-types */
2
import React from 'react'
3
 
4
const EmptySection = ({
5
  Icon = null,
6
  message = 'No hay publicaciones',
7
  align = 'center'
8
}) => {
9
  const alignOptions = {
10
    left: 'flex-start',
11
    right: 'flex-end',
12
    center: 'center'
13
  }
14
 
15
  return (
16
    <div className='empty__section' style={{ alignItems: alignOptions[align] }}>
17
      {Icon && Icon}
18
      <p>{message}</p>
19
    </div>
20
  )
21
}
22
 
23
export default EmptySection