Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev Autor Línea Nro. Línea
6707 stevensc 1
import React from 'react'
2
 
6731 stevensc 3
const TitleSection = ({ onAdd, title, addLabel = 'Agregar' }) => {
6707 stevensc 4
  return (
5
    <div className="company-title">
6
      <h1 className="title mx-auto">{title}</h1>
6731 stevensc 7
      {onAdd && (
6707 stevensc 8
        <h2 className="title cursor-pointer" onClick={onAdd}>
9
          {addLabel}
10
        </h2>
11
      )}
12
    </div>
13
  )
14
}
15
 
16
export default TitleSection