import React from 'react'; import { Mic, MicOff, Send, Camera } from 'lucide-react'; import { Button } from '@/components/ui/button'; import { Input } from '@/components/ui/input'; interface CommandBarProps { command: string; setCommand: (command: string) => void; handleSendCommand: () => void; isVoiceActive: boolean; setIsVoiceActive: (isActive: boolean) => void; showCamera: boolean; setShowCamera: (show: boolean) => void; handleEndSession: () => void; } const CommandBar: React.FC = ({ command, setCommand, handleSendCommand, isVoiceActive, setIsVoiceActive, showCamera, setShowCamera, handleEndSession }) => { return (
setCommand(e.target.value)} placeholder="Tell the robot what to do..." className="flex-1 bg-gray-800 border-gray-600 text-white placeholder-gray-400 text-lg py-3" onKeyPress={(e) => e.key === 'Enter' && handleSendCommand()} />
); }; export default CommandBar;