您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

RemoteVideoMenu.js 1.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import React, { Component } from 'react';
  2. /**
  3. * React {@code Component} responsible for displaying other components as a menu
  4. * for manipulating remote participant state.
  5. *
  6. * @extends {Component}
  7. */
  8. export default class RemoteVideoMenu extends Component {
  9. /**
  10. * {@code RemoteVideoMenu}'s property types.
  11. *
  12. * @static
  13. */
  14. static propTypes = {
  15. /**
  16. * The components to place as the body of the {@code RemoteVideoMenu}.
  17. */
  18. children: React.PropTypes.node,
  19. /**
  20. * The id attribute to be added to the component's DOM for retrieval
  21. * when querying the DOM. Not used directly by the component.
  22. */
  23. id: React.PropTypes.string
  24. };
  25. /**
  26. * Implements React's {@link Component#render()}.
  27. *
  28. * @inheritdoc
  29. * @returns {ReactElement}
  30. */
  31. render() {
  32. return (
  33. <ul
  34. className = 'popupmenu'
  35. id = { this.props.id }>
  36. { this.props.children }
  37. </ul>
  38. );
  39. }
  40. }