Files
jitsi-meet/react/features/conference/components/native/ExpandedLabelPopup.js
Robert Pintilii eb010061e0 feat(title-bar) Updated title bar (#10752)
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
2022-01-13 14:15:53 +02:00

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;