jiti-meet/react/features/overlay/components/web/OverlayFrame.js

48 lines
1.1 KiB
JavaScript
Raw Normal View History

2019-04-09 11:05:20 +00:00
// @flow
import React, { Component } from 'react';
declare var interfaceConfig: Object;
/**
* The type of the React {@code Component} props of {@link OverlayFrame}.
*/
type Props = {
/**
* The children components to be displayed into the overlay frame.
*/
children: React$Node,
/**
* Indicates the css style of the overlay. If true, then lighter; darker,
* otherwise.
*/
2019-03-06 16:28:59 +00:00
isLightOverlay?: boolean
};
/**
* Implements a React {@link Component} for the frame of the overlays.
*/
export default class OverlayFrame extends Component<Props> {
/**
* Implements React's {@link Component#render()}.
*
* @inheritdoc
* @returns {ReactElement|null}
*/
render() {
return (
<div
className = { this.props.isLightOverlay ? 'overlay__container-light' : 'overlay__container' }
id = 'overlay'>
<div className = { 'overlay__content' }>
{
this.props.children
}
</div>
</div>
);
}
}