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

RemoteVideoMenu.js 1007B

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