2018-10-30 05:02:23 +00:00
|
|
|
/* @flow */
|
|
|
|
|
2017-05-31 15:42:50 +00:00
|
|
|
import React, { Component } from 'react';
|
|
|
|
|
|
|
|
/**
|
2018-10-30 05:02:23 +00:00
|
|
|
* The type of the React {@code Component} props of {@link RemoteVideoMenu}.
|
2017-05-31 15:42:50 +00:00
|
|
|
*/
|
2018-10-30 05:02:23 +00:00
|
|
|
type Props = {
|
|
|
|
|
2017-05-31 15:42:50 +00:00
|
|
|
/**
|
2018-10-30 05:02:23 +00:00
|
|
|
* The components to place as the body of the {@code RemoteVideoMenu}.
|
2017-05-31 15:42:50 +00:00
|
|
|
*/
|
2018-10-30 05:02:23 +00:00
|
|
|
children: React$Node,
|
2017-05-31 15:42:50 +00:00
|
|
|
|
2018-10-30 05:02:23 +00:00
|
|
|
/**
|
|
|
|
* The id attribute to be added to the component's DOM for retrieval when
|
|
|
|
* querying the DOM. Not used directly by the component.
|
|
|
|
*/
|
|
|
|
id: string
|
|
|
|
};
|
2017-05-31 15:42:50 +00:00
|
|
|
|
2018-10-30 05:02:23 +00:00
|
|
|
/**
|
|
|
|
* React {@code Component} responsible for displaying other components as a menu
|
|
|
|
* for manipulating remote participant state.
|
|
|
|
*
|
|
|
|
* @extends {Component}
|
|
|
|
*/
|
|
|
|
export default class RemoteVideoMenu extends Component<Props> {
|
2017-05-31 15:42:50 +00:00
|
|
|
/**
|
|
|
|
* Implements React's {@link Component#render()}.
|
|
|
|
*
|
|
|
|
* @inheritdoc
|
|
|
|
* @returns {ReactElement}
|
|
|
|
*/
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<ul
|
|
|
|
className = 'popupmenu'
|
|
|
|
id = { this.props.id }>
|
|
|
|
{ this.props.children }
|
|
|
|
</ul>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|