Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | import React from 'react';
import { Entity } from '@playcanvas/react';
import { Script } from '@playcanvas/react/components';
import type { AnnotationProps } from './Annotation';
import { VrAnnotationPanel as VrAnnotationPanelScript } from './vr-annotation-panel';
interface VrAnnotationPanelProps {
annotation: AnnotationProps;
annotationIndex: number;
}
const VrAnnotationPanel = ({ annotation, annotationIndex }: VrAnnotationPanelProps) => (
<Entity name='vr-annotation-panel'>
<Script
script={VrAnnotationPanelScript}
title={annotation.title}
label={annotation.label}
bodyText={annotation.bodyText}
imageUrls={annotation.imageUrls}
annotationIndex={annotationIndex}
/>
</Entity>
);
export default VrAnnotationPanel;
|