jiti-meet/react/features/base/participants/components/Avatar.web.js

30 lines
544 B
JavaScript
Raw Normal View History

2017-02-27 21:42:28 +00:00
import React, { Component } from 'react';
/**
* Display a participant avatar.
*/
export default class Avatar extends Component {
/**
* Avatar component's property types.
*
* @static
*/
static propTypes = {
/**
* The URL for the avatar.
*
* @type {string}
*/
uri: React.PropTypes.string
}
/**
* Implements React's {@link Component#render()}.
*
* @inheritdoc
*/
render() {
2017-03-07 16:50:17 +00:00
return <img src = { this.props.uri } />;
2017-02-27 21:42:28 +00:00
}
}