Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev Autor Línea Nro. Línea
5087 stevensc 1
/* eslint-disable react/prop-types */
2
import React from 'react'
3
 
4
const TitleSection = ({ allowAdd, onAdd, title }) => {
5
  return (
6
    <div className="company-title">
5088 stevensc 7
        <h1 className="title mx-auto">{title}</h1>
5087 stevensc 8
        {allowAdd &&
5094 stevensc 9
            <h2 className="title cursor-pointer" onClick={onAdd}>
5087 stevensc 10
                {LABELS.ADD}
11
            </h2>}
12
    </div>
13
  )
14
}
15
 
16
export default TitleSection