fix: enhance UserMessage component to support image parts and improve rendering

- Updated UserMessage to accept a new `parts` prop for handling different message types, including images.
- Refactored image handling to extract and display images from the parts array, ensuring proper rendering of image content.
- Adjusted the layout and styling of the UserMessage component for better visual presentation.
This commit is contained in:
xKevIsDev
2025-07-19 01:19:43 +01:00
parent 897c08a8bd
commit 1554e2b0ce
3 changed files with 40 additions and 6 deletions

View File

@@ -589,6 +589,8 @@ export const ChatImpl = memo(
textareaRef.current?.blur();
};
console.log(messages);
/**
* Handles the change event for the textarea and updates the input state.
* @param event - The change event from the textarea.