1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-23 09:50:31 +01:00
onion/js/components/ascribe_table/table_item_img.js
2015-05-21 15:14:05 +02:00

20 lines
417 B
JavaScript

import React from 'react';
/**
* This could be enhanced further by specifying an optional description for example
*/
let TableItemImg = React.createClass({
propTypes: {
content: React.PropTypes.string.isRequired,
},
render() {
return (
<span>
<img src={this.props.content} width="50" />
</span>
);
}
});
export default TableItemImg;