// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import React from 'react';
import classNames from 'classnames';
import { Spinner } from '../../Spinner';
import { bemGenerator } from './util';
export enum IconType {
'block' = 'block',
'edit' = 'edit',
'unblock' = 'unblock',
'color' = 'color',
'down' = 'down',
'invites' = 'invites',
'leave' = 'leave',
'link' = 'link',
'lock' = 'lock',
'mention' = 'mention',
'mute' = 'mute',
'notifications' = 'notifications',
'reset' = 'reset',
'share' = 'share',
'spinner' = 'spinner',
'timer' = 'timer',
'trash' = 'trash',
'verify' = 'verify',
}
export type Props = {
ariaLabel: string;
disabled?: boolean;
icon: IconType;
fakeButton?: boolean;
onClick?: () => void;
};
const bem = bemGenerator('ConversationDetails-icon');
export function ConversationDetailsIcon({
ariaLabel,
disabled,
icon,
fakeButton,
onClick,
}: Props): JSX.Element {
let content: React.ReactChild;
if (icon === IconType.spinner) {
content =