import React from 'react';
import ForwardSvg from '../../../icons/actions/forward-filled.svg?react';
import ReplySvg from '../../../icons/actions/reply-filled.svg?react';
import './MessageCaption.scss';
interface MessageCaptionProps {
type: 'outgoing' | 'incoming';
subtype?: 'reply' | 'forward';
userName: string;
}
const subtypeIconDictionary = {
forward: ForwardSvg,
reply: ReplySvg,
};
const renderSubtype = (subtype: 'reply' | 'forward') => {
const SubTypeIcon = subtypeIconDictionary[subtype];
return (