From ee3d0d98e19f1d8177d85af1866fd0ee431fe9ea Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 25 Nov 2018 22:19:15 +0100 Subject: moving stuff --- scraper/client/common/detectionList.component.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 scraper/client/common/detectionList.component.js (limited to 'scraper/client/common/detectionList.component.js') diff --git a/scraper/client/common/detectionList.component.js b/scraper/client/common/detectionList.component.js new file mode 100644 index 00000000..416e66d8 --- /dev/null +++ b/scraper/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