// Copyright 2020 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only import React from 'react'; import { HangUpType, SetLocalPreviewType, SetRendererCanvasType, } from '../state/ducks/calling'; import { Avatar } from './Avatar'; import { CallBackgroundBlur } from './CallBackgroundBlur'; import { ColorType } from '../types/Colors'; import { LocalizerType } from '../types/Util'; function renderAvatar( { avatarPath, color, name, phoneNumber, profileName, title, }: { avatarPath?: string; color?: ColorType; title: string; name?: string; phoneNumber?: string; profileName?: string; }, i18n: LocalizerType ): JSX.Element { return (