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/detectionBoxes.component.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 scraper/client/common/detectionBoxes.component.js (limited to 'scraper/client/common/detectionBoxes.component.js') diff --git a/scraper/client/common/detectionBoxes.component.js b/scraper/client/common/detectionBoxes.component.js new file mode 100644 index 00000000..c4872ea8 --- /dev/null +++ b/scraper/client/common/detectionBoxes.component.js @@ -0,0 +1,15 @@ +import React from 'react' + +import { px } from '../util' + +export default function DetectionBoxes({ detections, width, height }) { + return detections.map(({ rect }, i) => ( + rect && +
+ )) +} -- cgit v1.2.3-70-g09d2