import React from 'react'; import PropTypes from 'prop-types'; const Slide = ({ imageUri, svgWidth, svgHeight }) => ( {imageUri // some pdfs lose a white background color during the conversion to svg // their background color is transparent // that's why we have a white rectangle covering the whole slide area by default ? ( ) : null} ); Slide.propTypes = { // Image Uri imageUri: PropTypes.string.isRequired, // Width of the slide (Svg coordinate system) svgWidth: PropTypes.number.isRequired, // Height of the slide (Svg coordinate system) svgHeight: PropTypes.number.isRequired, }; export default Slide;