// Copyright 2019 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import React from 'react';
import { SystemMessage } from './SystemMessage.js';
import { Button, ButtonSize, ButtonVariant } from '../Button.js';
import { ContactName } from './ContactName.js';
import { I18n } from '../I18n.js';
import type { LocalizerType } from '../../types/Util.js';
import { openLinkInWebBrowser } from '../../util/openLinkInWebBrowser.js';
export type ContactType = {
id: string;
phoneNumber?: string;
profileName?: string;
title: string;
name?: string;
isMe: boolean;
};
export type PropsData = {
canProcessNow: boolean;
contact: ContactType;
};
type PropsHousekeeping = {
i18n: LocalizerType;
};
export type Props = PropsData & PropsHousekeeping;
function UnsupportedMessageContents({ canProcessNow, contact, i18n }: Props) {
const { isMe } = contact;
const contactName = (