mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-26 17:01:49 +02:00
Update src/components/views/voip/CallView/CallViewHeader.tsx
Co-authored-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
90c2eb0b92
commit
838d9105c9
@ -96,13 +96,13 @@ function getAvatarBasedOnRoomType(roomOrWidget: Room | IApp) {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function CallViewHeader({
|
export const CallViewHeader: React.FC<CallViewHeaderProps> = ({
|
||||||
type,
|
type,
|
||||||
pipMode = false,
|
pipMode = false,
|
||||||
callRooms = [],
|
callRooms = [],
|
||||||
app,
|
app,
|
||||||
onPipMouseDown,
|
onPipMouseDown,
|
||||||
}: CallViewHeaderProps) {
|
}) {
|
||||||
const [callRoom, onHoldCallRoom] = callRooms;
|
const [callRoom, onHoldCallRoom] = callRooms;
|
||||||
const callTypeText = callTypeTranslationByType[type](app);
|
const callTypeText = callTypeTranslationByType[type](app);
|
||||||
const avatar = getAvatarBasedOnRoomType(callRoom ?? app);
|
const avatar = getAvatarBasedOnRoomType(callRoom ?? app);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user