forked from CouncilDataProject/cdp-frontend
/
LegislationIntroduction.tsx
54 lines (51 loc) · 1.58 KB
/
LegislationIntroduction.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import React, { FC } from "react";
import MatterStatus from "../../../models/MatterStatus";
import IndexedMatterGram from "../../../models/IndexedMatterGram";
import { DecisionResult } from "../../Shared";
export interface LegislationIntroductionProps {
matterStatus: MatterStatus;
indexedMatterGrams: IndexedMatterGram[];
}
const LegislationIntroduction: FC<LegislationIntroductionProps> = ({
matterStatus,
indexedMatterGrams,
}: LegislationIntroductionProps) => {
return (
<div>
<h1 className="mzp-u-title-sm">{matterStatus.matter?.name}</h1>
<b>{matterStatus.matter?.title}</b>
<div
style={{
display: "flex",
flexDirection: "row",
justifyContent: "start",
marginTop: 12,
marginBottom: 12,
}}
>
<DecisionResult
result={matterStatus.status}
style={{ display: "flex", alignItems: "center", flex: 0, whiteSpace: "nowrap" }}
/>
<div
style={{
display: "flex",
flexDirection: "row",
justifyContent: "left",
alignItems: "center",
flex: 1,
}}
>
{indexedMatterGrams &&
indexedMatterGrams.map((indexedMatterGram) => (
<div key={indexedMatterGram.id}>
<p style={{ display: "inline", paddingLeft: 11, paddingRight: 11 }}>•</p>
<p style={{ display: "inline" }}>{indexedMatterGram.unstemmed_gram}</p>
</div>
))}
</div>
</div>
</div>
);
};
export default LegislationIntroduction;