import React from 'react' export default function DetectionList({ detections, labels, tag, showEmpty }) { return ( {tag &&

{tag}

} {!detections.length && showEmpty && } {detections.map(({ idx, score, rect }, i) => ( ))}
) }