24 lines
520 B
JavaScript
Executable File
24 lines
520 B
JavaScript
Executable File
import React, { PropTypes } from 'react';
|
|
|
|
export default class Slide extends React.Component {
|
|
constructor(props) {
|
|
super(props);
|
|
}
|
|
|
|
render() {
|
|
return (
|
|
<g>
|
|
{this.props.currentSlide ?
|
|
<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>
|
|
: null }
|
|
</g>
|
|
);
|
|
}
|
|
}
|