diff --git a/src/components/ChatInput.js b/src/components/ChatInput.js index 13f05b51..2066e17e 100644 --- a/src/components/ChatInput.js +++ b/src/components/ChatInput.js @@ -1,5 +1,5 @@ import React from "react"; -import { Box, TextField, Button } from "@mui/material"; +import { Box, TextField, Button, Typography } from "@mui/material"; import FileSelector from "./FileSelector"; import { models } from "./Settings"; @@ -26,22 +26,36 @@ const ChatInput = ({ return ( - setInput(e.target.value)} - onKeyPress={(e) => { - if (e.key === "Enter") { - onSubmit(); - } - }} - multiline - minRows={1} - maxRows={6} - onPaste={handlePaste} - /> + + setInput(e.target.value)} + onKeyPress={(e) => { + if (e.key === "Enter") { + onSubmit(); + } + }} + multiline + minRows={1} + maxRows={6} + onPaste={handlePaste} + /> + {pastedImage && ( + + Pasted Image: + Pasted + + )} +