import React from 'react'; interface TaskButtonProps { isAgentProcessing: boolean; isConnected: boolean; onSendTask: (content: string, modelId: string) => void; } export const TaskButton: React.FC = ({ isAgentProcessing, isConnected, onSendTask }) => { return (
{ if (!isAgentProcessing && isConnected) { onSendTask( "Find the price of a NVIDIA RTX 4090 GPU", "Qwen/Qwen3-VL-30B-A3B-Instruct" ); } }} style={{ marginTop: '16px', padding: '14px 18px', background: isAgentProcessing || !isConnected ? 'rgba(255, 255, 255, 0.1)' : 'rgba(255, 255, 255, 0.15)', borderRadius: '10px', backdropFilter: 'blur(10px)', border: '2px solid rgba(0, 0, 0, 0.3)', cursor: isAgentProcessing || !isConnected ? 'not-allowed' : 'pointer', transition: 'all 0.3s ease', opacity: isAgentProcessing || !isConnected ? 0.6 : 1, }} onMouseEnter={(e) => { if (!isAgentProcessing && isConnected) { e.currentTarget.style.background = 'rgba(200, 200, 200, 0.3)'; e.currentTarget.style.borderColor = 'rgba(0, 0, 0, 0.5)'; e.currentTarget.style.transform = 'translateY(-2px)'; e.currentTarget.style.boxShadow = '0 6px 20px rgba(0, 0, 0, 0.2)'; } }} onMouseLeave={(e) => { e.currentTarget.style.background = 'rgba(255, 255, 255, 0.15)'; e.currentTarget.style.borderColor = 'rgba(0, 0, 0, 0.3)'; e.currentTarget.style.transform = 'translateY(0)'; e.currentTarget.style.boxShadow = 'none'; }} >
Task {!isAgentProcessing && isConnected && ( (click to run) )}

Find the price of a NVIDIA RTX 4090 GPU

Model

Qwen/Qwen3-VL-30B-A3B-Instruct

); };