import { ipcRenderer } from 'electron'; import React from 'react'; import styled from 'styled-components'; import { MessageDeliveryStatus } from '../../../models/messageType'; import { SessionIcon } from '../../session/icon'; const MessageStatusSendingContainer = styled.div` display: inline-block; align-self: flex-end; margin-bottom: 2px; margin-inline-start: 5px; cursor: pointer; `; const MessageStatusSending = () => { const iconColor = 'var(--color-text)'; return ( ); }; const MessageStatusSent = () => { const iconColor = 'var(--color-text)'; return ( ); }; const MessageStatusRead = () => { const iconColor = 'var(--color-text)'; return ( ); }; const MessageStatusError = () => { const showDebugLog = () => { ipcRenderer.send('show-debug-log'); }; return ( ); }; export const OutgoingMessageStatus = (props: { status?: MessageDeliveryStatus | null }) => { switch (props.status) { case 'sending': return ; case 'sent': return ; case 'read': return ; case 'error': return ; default: return null; } };