// Copyright 2021 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only import type { CSSProperties, MouseEvent, ReactNode } from 'react'; import React from 'react'; import classNames from 'classnames'; import type { AvatarColorType } from '../types/Colors'; import type { LocalizerType } from '../types/Util'; export type PropsType = { children?: ReactNode; color?: AvatarColorType; i18n: LocalizerType; isSelected?: boolean; onDelete?: (ev: MouseEvent) => unknown; onSelect: () => unknown; style?: CSSProperties; }; export const BetterAvatarBubble = ({ children, color, i18n, isSelected, onDelete, onSelect, style, }: PropsType): JSX.Element => { return (