import React from 'react'; import { ContactName } from '../../../ContactName'; import { PubKey } from '../../../../../session/types'; import styled from 'styled-components'; import { QuoteProps } from './Quote'; const StyledQuoteAuthor = styled.div<{ isIncoming: boolean }>` color: ${props => props.isIncoming ? 'var(--message-bubbles-received-text-color)' : 'var(--message-bubbles-sent-text-color)'}; font-size: 15px; font-weight: bold; line-height: 18px; margin-bottom: 2px; overflow-x: hidden; white-space: nowrap; text-overflow: ellipsis; .module-contact-name { font-weight: bold; } `; type QuoteAuthorProps = Pick & { showPubkeyForAuthor: boolean; }; export const QuoteAuthor = (props: QuoteAuthorProps) => { const { author, authorName, isFromMe, isIncoming, showPubkeyForAuthor } = props; debugger; if (author === '' || authorName === '') { return null; } return ( {isFromMe ? ( window.i18n('you') ) : ( )} ); };