{/* Gradient border wrapper like the schedules AI input */}
{/* Error message */}
{error && (
{error}
)}
{/* Thinking panel - stays visible after completion */}
{showThinking && thinking && (
{isLoading ? (
) : lastResult === "success" ? (
) : lastResult === "error" ? (
) : null}
{isLoading
? "AI is thinking..."
: lastResult === "success"
? "Query generated"
: lastResult === "error"
? "Generation failed"
: "AI response"}
{isLoading ? (
) : (
)}
{thinking}}>
{thinking}
)}
);
}