import React from 'react'; import styled, { DefaultTheme } from 'styled-components'; import { SessionIcon, SessionIconSize, SessionIconType, } from '../../session/icon'; const MessageStatusSendingContainer = styled.div` min-width: 12px; min-height: 12px; width: 12px; height: 12px; display: inline-block; margin-bottom: 2px; margin-inline-start: 5px; `; const MessageStatusSending = (props: { theme: DefaultTheme; withImageNoCaption: boolean; }) => { const iconColor = props.withImageNoCaption ? 'white' : undefined; return ( ); }; const MessageStatusSent = (props: { theme: DefaultTheme; withImageNoCaption: boolean; }) => { const iconColor = props.withImageNoCaption ? 'white' : undefined; return ( ); }; const MessageStatusDelivered = (props: { theme: DefaultTheme; withImageNoCaption: boolean; }) => { const iconColor = props.withImageNoCaption ? 'white' : undefined; return ( ); }; const MessageStatusRead = (props: { theme: DefaultTheme; withImageNoCaption: boolean; }) => { const iconColor = props.withImageNoCaption ? 'white' : undefined; return ( ); }; const MessageStatusError = (props: { theme: DefaultTheme; withImageNoCaption: boolean; }) => { return ( ); }; export const OutgoingMessageStatus = (props: { status?: 'sending' | 'sent' | 'delivered' | 'read' | 'error' | 'pow'; theme: DefaultTheme; withImageNoCaption: boolean; }) => { switch (props.status) { case 'pow': case 'sending': return ; case 'sent': return ; case 'delivered': return ; case 'read': return ; case 'error': return ; default: return null; } };