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

33 lines
584 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() {
return (
<img
src = { this.props.uri } />
);
}
}