File size: 911 Bytes
d61b9c7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
import React from "react";
import styles from "../App.module.css";
import cx from "../utils/cx";
import Visualization from "../components/Visualization";
import { VisualizationGroup } from "../models/visualizationOutput";

interface VisualizationGroupDisplayProps {
  inputIndex: number;
  data: VisualizationGroup;
  onTargetClick: (
    labelIndex: number,
    inputIndex: number,
    modelIndex: number,
    callback: () => void
  ) => void;
}

function VisualizationGroupDisplay(props: VisualizationGroupDisplayProps) {
  return (
    <div
      className={cx({
        [styles.panel]: true,
        [styles["panel--long"]]: true,
      })}
    >
      {props.data.map((v, i) => (
        <Visualization
          data={v}
          instance={props.inputIndex}
          onTargetClick={props.onTargetClick}
          key={i}
        />
      ))}
    </div>
  );
}

export default VisualizationGroupDisplay;