Skip to content
Permalink
 
 
Cannot retrieve contributors at this time
15 lines (12 sloc) 392 Bytes
var React = require('react');
var Message = function statelessFunctionComponentClass(props) {
var iconImagePath = './images/';
iconImagePath = iconImagePath + (props.isLoved ? 'loved.png' : 'not-loved.png');
return (
<span>
<img src={iconImagePath} alt="Love status" />
<span className="message-text">{props.text}</span>
</span>
);
};
module.exports = Message;
You can’t perform that action at this time.