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

34 lines
796 B
React
Raw Normal View History

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"
2017-06-03 03:25:02 +08:00
/>
<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"
2017-06-03 03:25:02 +08:00
/>
</g>
2016-06-03 06:09:28 +08:00
: null }
</g>
);
}
}