import React from 'react'; import { TextField, Button, Box, IconButton, CircularProgress } from '@mui/material'; import PaperPlaneIcon from '@mui/icons-material/Send'; import RefreshIcon from '@mui/icons-material/Refresh'; import { grey } from '@mui/material/colors'; const ChatInput = ({ inputText, handleInputChange, handleKeyDown, handleFormSubmit, loading, clearChatHistory, }) => { return ( handleKeyDown(e, handleFormSubmit)} placeholder="Type your message here and press Command+Enter to send" multiline rows={2} rowsmax={2} variant="outlined" disabled={loading} sx={{ flexGrow: 1, maxHeight: '80%', mr: 1, ml: -1, backgroundColor: 'rgba(255, 255, 255, 0.8)', borderRadius:'15px'}} /> ); }; export default ChatInput;