| 3719 |
stevensc |
1 |
import React, { useState } from 'react';
|
|
|
2 |
import { Button, Typography } from '@mui/material';
|
|
|
3 |
import East from '@mui/icons-material/East';
|
|
|
4 |
|
|
|
5 |
import { parse } from '@utils';
|
|
|
6 |
|
|
|
7 |
import Widget from '@components/UI/Widget';
|
|
|
8 |
import CompanyInfoModal from '@components/modals/CompanyInfoModal';
|
|
|
9 |
|
|
|
10 |
export default function AboutCompany({ company: { overview, ...company } }) {
|
|
|
11 |
const [showModal, setShowModal] = useState(false);
|
|
|
12 |
|
|
|
13 |
const toggleModal = () => setShowModal(!showModal);
|
|
|
14 |
|
|
|
15 |
return (
|
|
|
16 |
<>
|
|
|
17 |
<Widget>
|
|
|
18 |
<Widget.Header title='Acerca de esta empresa' />
|
|
|
19 |
<Widget.Body>
|
|
|
20 |
<Typography>{parse(overview)}</Typography>
|
|
|
21 |
</Widget.Body>
|
|
|
22 |
|
|
|
23 |
<Widget.Actions styles={{ padding: 0 }}>
|
|
|
24 |
<Button onClick={toggleModal} fullWidth sx={{ borderRadius: 0 }}>
|
|
|
25 |
Ver más
|
|
|
26 |
<East />
|
|
|
27 |
</Button>
|
|
|
28 |
</Widget.Actions>
|
|
|
29 |
</Widget>
|
|
|
30 |
|
|
|
31 |
<CompanyInfoModal show={showModal} company={company} closeModal={toggleModal} />
|
|
|
32 |
</>
|
|
|
33 |
);
|
|
|
34 |
}
|