1
0
mirror of https://github.com/ascribe/onion.git synced 2025-02-14 21:10:27 +01:00
onion/js/components/table_item_img.js
2015-05-20 15:22:29 +02:00

20 lines
485 B
JavaScript

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