// Copyright 2020 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only import type { ReactNode } from 'react'; import React from 'react'; import classNames from 'classnames'; import type { LocalizerType } from '../types/Util'; import { Tooltip } from './Tooltip'; import { Theme } from '../util/theme'; export type PropsType = { i18n: LocalizerType; isInSpeakerView?: boolean; isGroupCall?: boolean; message?: ReactNode; onCancel?: () => void; participantCount: number; showParticipantsList: boolean; title?: string; toggleParticipants?: () => void; togglePip?: () => void; toggleSettings: () => void; toggleSpeakerView?: () => void; }; export function CallingHeader({ i18n, isInSpeakerView, isGroupCall = false, message, onCancel, participantCount, showParticipantsList, title, toggleParticipants, togglePip, toggleSettings, toggleSpeakerView, }: PropsType): JSX.Element { return (