// Copyright 2021 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only import React from 'react'; import { AvatarColorType } from '../types/Colors'; import { AvatarPreview } from './AvatarPreview'; import { IMAGE_JPEG } from '../types/MIME'; import { Lightbox } from './Lightbox'; import { LocalizerType } from '../types/Util'; export type PropsType = { avatarColor?: AvatarColorType; avatarPath?: string; conversationTitle?: string; i18n: LocalizerType; isGroup?: boolean; onClose: () => unknown; }; export const AvatarLightbox = ({ avatarColor, avatarPath, conversationTitle, i18n, isGroup, onClose, }: PropsType): JSX.Element => { if (avatarPath) { return ( ); } return ( ); };