Total Complexity | 0 |
Complexity/F | 0 |
Lines of Code | 40 |
Function Count | 0 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import parse from "html-react-parser"; |
||
2 | |||
3 | import { Button } from "@navikt/ds-react"; |
||
4 | |||
5 | import { formatDate } from "../../assets/utils/functions"; |
||
6 | |||
7 | import style from "./JobModalContent.module.scss"; |
||
8 | |||
9 | import { TJobContentProps } from "./JobModalContent.type"; |
||
10 | |||
11 | const JobModalContent = ({ |
||
12 | name, |
||
13 | description, |
||
14 | extent, |
||
15 | applicationDue, |
||
16 | closeModal, |
||
17 | }: TJobContentProps): JSX.Element => { |
||
18 | return ( |
||
19 | <> |
||
20 | <Button variant="danger" onClick={closeModal}> |
||
21 | Lukk |
||
22 | </Button> |
||
23 | <div className={style.jobDiv}> |
||
24 | <span className={style.jobContent}> |
||
25 | <span className={style.jobTitle}> |
||
26 | {name} |
||
27 | <br /> |
||
28 | {extent} |
||
29 | <br /> |
||
30 | {formatDate(applicationDue)} |
||
31 | </span> |
||
32 | <br /> |
||
33 | {parse(description)} |
||
34 | </span> |
||
35 | </div> |
||
36 | </> |
||
37 | ); |
||
38 | }; |
||
39 | export default JobModalContent; |
||
40 |