|
1 | 1 | import React, { useEffect, useState } from 'react'; |
2 | 2 | import theme from '@/theme'; |
3 | | -import { VBox } from '@/ui/shared-components/LayoutBoxes'; |
| 3 | +import { HBox, VBox } from '@/ui/shared-components/LayoutBoxes'; |
4 | 4 | import { Typography } from "@mui/material"; |
5 | 5 | import mermaid from "mermaid"; |
| 6 | +import AntSwitch from "@/ui/shared-components/AntSwitch"; |
| 7 | +import RegularButton from "@/ui/shared-components/buttons/RegularButton"; |
6 | 8 |
|
7 | 9 | export default function MermaidRulesGraph({ evalGraph, t }) { |
8 | 10 | const [svgContent, setSvgContent] = useState(""); |
@@ -34,6 +36,32 @@ export default function MermaidRulesGraph({ evalGraph, t }) { |
34 | 36 | <Typography variant="h2" sx={{ fontWeight: '400', wordBreak: "break-word" }}> |
35 | 37 | Rules Graph |
36 | 38 | </Typography> |
| 39 | + <HBox gap={4} alignItems="center"> |
| 40 | + <HBox gap={1} alignItems="center"> |
| 41 | + <strong>Type:</strong> |
| 42 | + <span>Rule</span> |
| 43 | + <AntSwitch checked={true} onChange={() => {}} color="white"/> |
| 44 | + <span>Evaluation</span> |
| 45 | + </HBox> |
| 46 | + <HBox gap={1} alignItems="center"> |
| 47 | + <strong>Orientation:</strong> |
| 48 | + <span>Horizontal</span> |
| 49 | + <AntSwitch checked={true} onChange={() => {}} color="white"/> |
| 50 | + <span>Vertical</span> |
| 51 | + </HBox> |
| 52 | + <HBox gap={1} alignItems="center"> |
| 53 | + <strong>Datafields:</strong> |
| 54 | + <span>URIs</span> |
| 55 | + <AntSwitch checked={true} onChange={() => {}} color="white"/> |
| 56 | + <span>Labels</span> |
| 57 | + </HBox> |
| 58 | + <RegularButton |
| 59 | + variant={'blackOutlined'} |
| 60 | + text={"Export"} |
| 61 | + onClick={() => {}} |
| 62 | + size='small' |
| 63 | + /> |
| 64 | + </HBox> |
37 | 65 | <Typography variant="body1" component="div"> |
38 | 66 | <div dangerouslySetInnerHTML={{ __html: svgContent }} /> |
39 | 67 | </Typography> |
|
0 commit comments