+

+ {previewAnnotations.map((annotation) => {
+ const annotationIndex = annotations.indexOf(annotation);
+ const annotationLabel = captureTargetLabel(annotation.capture);
+ const isActive = annotation.id === active.id;
+ const rectStyle = {
+ left: percent(annotation.capture.rect.x, viewport.width),
+ top: percent(annotation.capture.rect.y, viewport.height),
+ width: percent(annotation.capture.rect.width, viewport.width),
+ height: percent(annotation.capture.rect.height, viewport.height),
+ };
+ return (
+
+ );
+ })}
+
+
+