You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

RemoteVideoMenu.js 1.1KB

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