bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/whiteboard/annotation-group/component.jsx
Oleksandr Zhurbenko 251bd22738 PR review fixes
2017-09-06 12:36:52 -07:00

28 lines
818 B
JavaScript

import React from 'react';
import PropTypes from 'prop-types';
import AnnotationFactory from '../annotation-factory/component';
const AnnotationGroup = ({ ...props }) => (
<AnnotationFactory
annotationsInfo={props.annotationsInfo}
slideWidth={props.slideWidth}
slideHeight={props.slideHeight}
/>
);
AnnotationGroup.propTypes = {
// initial width and height of the slide are required
// to calculate the coordinates for each annotation
slideWidth: PropTypes.number.isRequired,
slideHeight: PropTypes.number.isRequired,
// array of annotations, optional
annotationsInfo: PropTypes.arrayOf(PropTypes.shape({
status: PropTypes.string.isRequired,
_id: PropTypes.string.isRequired,
annotationType: PropTypes.string.isRequired,
})).isRequired,
};
export default AnnotationGroup;