Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 3088 | | 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 { Typography } from '@mui/material';
3
 
4
import Widget from '@components/UI/Widget';
5
 
6
export default function CompanyInfo({
7
  company: {
8
    company_name: companyName,
9
    company_foundation_year: companyFoundationYear,
10
    company_website: companyWebsite,
11
    company_industry: companyIndustry,
12
    company_size: companySize,
13
    company_address: companyAddress
14
  }
15
}) {
16
  return (
17
    <Widget>
18
      <Widget.Header title='Sobre el cliente' />
19
 
20
      <Widget.Body>
21
        <Typography variant='h4'>{companyIndustry}</Typography>
22
        <Typography>{companySize}</Typography>
23
 
24
        {companyName && <Typography>{companyName}</Typography>}
25
 
26
        {companyAddress && <Typography>{companyAddress}</Typography>}
27
 
28
        {companyWebsite && (
29
          <>
30
            <Typography variant='h4'>URL del sitio web de la empresa</Typography>
31
            <a href={`http://${companyWebsite}`} target='_blank' rel='noreferrer'>
32
              {companyWebsite}
33
            </a>
34
          </>
35
        )}
36
 
37
        {companyFoundationYear && (
38
          <>
39
            <Typography variant='h4'>Fundada</Typography>
40
            <Typography>{companyFoundationYear}</Typography>
41
          </>
42
        )}
43
      </Widget.Body>
44
    </Widget>
45
  );
46
}