import React from 'react'; interface UserInputProps { value: string; onChange: (value: string) => void; onSend: () => void; } const UserInput: React.FC = ({ value, onChange, onSend }) => { const handleKeyPress = (e: React.KeyboardEvent) => { if (e.key === 'Enter' && !e.shiftKey) { e.preventDefault(); onSend(); } }; return (