1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-10 09:22:25 +03:00

Update src/components/views/voip/CallView/CallViewHeader.tsx

Co-authored-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Dariusz Niemczyk
2021-08-03 13:53:49 +02:00
committed by GitHub
parent 90c2eb0b92
commit 838d9105c9

View File

@@ -96,13 +96,13 @@ function getAvatarBasedOnRoomType(roomOrWidget: Room | IApp) {
return null;
}
export function CallViewHeader({
export const CallViewHeader: React.FC<CallViewHeaderProps> = ({
type,
pipMode = false,
callRooms = [],
app,
onPipMouseDown,
}: CallViewHeaderProps) {
}) {
const [callRoom, onHoldCallRoom] = callRooms;
const callTypeText = callTypeTranslationByType[type](app);
const avatar = getAvatarBasedOnRoomType(callRoom ?? app);