static-cms/src/components/Widgets/ImagePreview.js

13 lines
253 B
JavaScript
Raw Normal View History

2016-05-30 16:55:32 -07:00
import React from 'react';
export default class ImagePreview extends React.Component {
constructor(props) {
super(props);
}
render() {
2016-06-10 00:16:01 -03:00
const { value, getMedia } = this.props;
return value ? <img src={getMedia(value)}/> : null;
2016-05-30 16:55:32 -07:00
}
}