-
-
{avatar.name}
- {state === DisplayMessageState.FileAsset && (
-
-
-
- {t('Document added')}:{' '}
- {asset?.type === 'file' ? getFilename(asset?.file) : t('Not found')}
-
-
- )}
- {state === DisplayMessageState.Pending && (
-
-
-
- )}
- {(state === DisplayMessageState.Markdown ||
- state === DisplayMessageState.Streaming) && (
-
- {Content}
-
- )}
- {state === DisplayMessageState.Text && (
-
- {content}
-
- )}
- {state === DisplayMessageState.Edit && (
-
-
- )}
-
- {state === DisplayMessageState.FileAsset && isHover && (
-
-
-
- )}
- {(state === DisplayMessageState.Pending ||
- state === DisplayMessageState.Streaming) &&
- isHover && (
-
-
-
- )}
- {(state === DisplayMessageState.Markdown || state === DisplayMessageState.Text) &&
- isHover && (
-
- {message.contentHistory && message.contentHistory.length > 0 && (
-
-
-
- {' '}
- {message.contentHistory.length - current + 1} /{' '}
- {message.contentHistory.length + 1}{' '}
-
-
-
- )}
- {!isUser && (
-
- )}
-
onCopyMessage(message.id, copied)}
- />
- {message.status !== MessageStatus.Error && (
-
- )}
-
-
- )}
- {state === DisplayMessageState.Edit && (
-
-
-
-
- )}
-