1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 09:35:10 +01:00
onion/js/components/table_item_img.js
2015-05-20 15:44:15 +02:00

18 lines
374 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 (
<img src={this.props.content} width="50" />
);
}
});
export default TableItemImg;