diff --git a/src/renderer/src/components/footer/footer.tsx b/src/renderer/src/components/footer/footer.tsx index 7c058614..0dc75277 100644 --- a/src/renderer/src/components/footer/footer.tsx +++ b/src/renderer/src/components/footer/footer.tsx @@ -35,6 +35,9 @@ interface MessageInputProps { onKeyDown: (e: React.KeyboardEvent) => void onCompositionStart: () => void onCompositionEnd: () => void + onPaste: (e: React.ClipboardEvent) => void + attachmentsCount: number + onClearAttachments: () => void } // Reusable components @@ -81,6 +84,9 @@ const MessageInput = memo(({ onKeyDown, onCompositionStart, onCompositionEnd, + onPaste, + attachmentsCount, + onClearAttachments, }: MessageInputProps) => { const { t } = useTranslation(); @@ -88,21 +94,26 @@ const MessageInput = memo(({ + {attachmentsCount > 0 && (<> + {attachmentsCount} + )}