// Copyright 2018-2020 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only import React from 'react'; import classNames from 'classnames'; import { ContactType } from '../../types/Contact'; import { LocalizerType } from '../../types/Util'; import { renderAvatar, renderContactShorthand, renderName, } from './_contactUtil'; export type Props = { contact: ContactType; i18n: LocalizerType; isIncoming: boolean; withContentAbove: boolean; withContentBelow: boolean; tabIndex: number; onClick?: () => void; }; export const EmbeddedContact: React.FC = (props: Props) => { const { contact, i18n, isIncoming, onClick, tabIndex, withContentAbove, withContentBelow, } = props; const module = 'embedded-contact'; const direction = isIncoming ? 'incoming' : 'outgoing'; return ( ); };