// Copyright 2024 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only /* eslint-disable react/no-array-index-key */ import React from 'react'; import { Avatar, AvatarSize } from './Avatar'; import { ContactName } from './conversation/ContactName'; import { InContactsIcon } from './InContactsIcon'; import type { LocalizerType } from '../types/Util'; import type { ConversationType } from '../state/ducks/conversations'; import { isInSystemContacts } from '../util/isInSystemContacts'; import type { PendingUserActionPayloadType } from '../state/ducks/calling'; import type { ServiceIdString } from '../types/ServiceId'; import { Button, ButtonVariant } from './Button'; export type PropsType = { readonly i18n: LocalizerType; readonly ourServiceId: ServiceIdString | undefined; readonly participants: Array; readonly approveUser: (payload: PendingUserActionPayloadType) => void; readonly denyUser: (payload: PendingUserActionPayloadType) => void; }; export function CallingPendingParticipants({ i18n, ourServiceId, participants, approveUser, denyUser, }: PropsType): JSX.Element | null { return (
{i18n('icu:CallingPendingParticipants__RequestsToJoin', { count: participants.length, })}
); }