From aa0470a3076f5ac65a0311c76e58254547f3eae0 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 3 Nov 2018 17:29:49 +0100 Subject: begin client --- client/common/detectionList.component.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 client/common/detectionList.component.js (limited to 'client/common/detectionList.component.js') diff --git a/client/common/detectionList.component.js b/client/common/detectionList.component.js new file mode 100644 index 00000000..416e66d8 --- /dev/null +++ b/client/common/detectionList.component.js @@ -0,0 +1,16 @@ +import React from 'react' + +export default function DetectionList({ detections, labels, tag, showEmpty }) { + return ( + + {tag &&

{tag}

} + {!detections.length && showEmpty && } + {detections.map(({ idx, score, rect }, i) => ( + + ))} +
+ ) +} -- cgit v1.2.3-70-g09d2