import React from 'react'; import { Box, Typography, TextField, Button, IconButton } from '@mui/material'; import { Send } from '@mui/icons-material'; import { CommandInputProps } from '@/lib/interfaces/terminal'; import { formatPrompt } from '@/lib/utils/terminal'; export default function CommandInput({ command, workdir, isExecuting, isMobile, containerName, onCommandChange, onExecute, onKeyPress, }: CommandInputProps) { return ( {formatPrompt(containerName, workdir)} onCommandChange(e.target.value)} onKeyPress={onKeyPress} placeholder="ls -la" disabled={isExecuting} variant="outlined" size="small" autoFocus sx={{ fontFamily: '"Ubuntu Mono", monospace', '& input': { fontFamily: '"Ubuntu Mono", monospace', fontSize: { xs: '12px', sm: '14px' }, padding: { xs: '6px 10px', sm: '8px 12px' }, color: '#F8F8F2', }, '& .MuiOutlinedInput-root': { backgroundColor: '#1E1E1E', '& fieldset': { borderColor: '#5E2750', }, '&:hover fieldset': { borderColor: '#772953', }, '&.Mui-focused fieldset': { borderColor: '#8BE9FD', }, }, }} /> {isMobile ? ( ) : ( )} ); }