bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/presentation/slide/component.jsx

35 lines
821 B
JavaScript
Executable File

import React from 'react';
import PropTypes from 'prop-types';
export default class Slide extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<g>
{this.props.currentSlide ?
<g>
<rect
x="0"
y="0"
width={this.props.currentSlide.slide.width}
height={this.props.currentSlide.slide.height}
fill="white"
>
</rect>
<image x="0" y="0"
width={this.props.currentSlide.slide.width}
height={this.props.currentSlide.slide.height}
xlinkHref={this.props.currentSlide.slide.img_uri}
strokeWidth="0.8"
>
</image>
</g>
: null }
</g>
);
}
}