mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-02-12 08:50:20 +00:00
Only display Picture-in-Picture button when feature is available Moved conference timer before title Created new always-on container for labels Moved recording labels to always-on Updated expanded label to support new always-on labels Added raised hands counter label Added speaker - earpiece toggle button Lifted state up
38 lines
894 B
JavaScript
38 lines
894 B
JavaScript
// @flow
|
|
|
|
import React from 'react';
|
|
|
|
import BaseTheme from '../../../base/ui/components/BaseTheme';
|
|
|
|
import { EXPANDED_LABELS } from './constants';
|
|
|
|
type Props = {
|
|
|
|
/**
|
|
* The selected label to show details.
|
|
*/
|
|
visibleExpandedLabel: ?string
|
|
}
|
|
|
|
const ExpandedLabelPopup = ({ visibleExpandedLabel }: Props) => {
|
|
if (visibleExpandedLabel) {
|
|
const expandedLabel = EXPANDED_LABELS[visibleExpandedLabel];
|
|
|
|
if (expandedLabel) {
|
|
const LabelComponent = expandedLabel.component || expandedLabel;
|
|
const { props, alwaysOn } = expandedLabel || {};
|
|
const style = {
|
|
top: alwaysOn ? BaseTheme.spacing[6] : BaseTheme.spacing[1]
|
|
};
|
|
|
|
return (<LabelComponent
|
|
{ ...props }
|
|
style = { style } />);
|
|
}
|
|
}
|
|
|
|
return null;
|
|
};
|
|
|
|
export default ExpandedLabelPopup;
|