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

13 lines
234 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() {
const { value } = this.props;
2016-06-06 10:41:55 -03:00
return value ? <img src={value} /> : null;
2016-05-30 16:55:32 -07:00
}
}