// Copyright 2020 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only import React from 'react'; import classNames from 'classnames'; import { LocalizerType } from '../types/Util'; import { Tooltip, TooltipTheme } from './Tooltip'; export type PropsType = { canPip?: boolean; conversationTitle: JSX.Element | string; i18n: LocalizerType; isGroupCall?: boolean; remoteParticipants?: number; showParticipantsList: boolean; toggleParticipants?: () => void; togglePip?: () => void; toggleSettings: () => void; }; export const CallingHeader = ({ canPip = false, conversationTitle, i18n, isGroupCall = false, remoteParticipants, showParticipantsList, toggleParticipants, togglePip, toggleSettings, }: PropsType): JSX.Element => (
{conversationTitle}
{isGroupCall ? (
) : null}
{canPip && (
)}
);