{/* 关闭按钮 */}
选择操作或输入自定义指令
{/* 操作按钮组 */}
{ACTIONS.map((a) => (
))}
{/* 自定义指令 */}
setCustomPrompt(e.target.value)}
onKeyDown={(e) => { if (e.key === "Enter" && !e.shiftKey) { e.preventDefault(); runAction(); } }}
placeholder="或输入自定义指令..."
className="flex-1 h-8 px-3 rounded-lg border border-border bg-transparent font-sans text-xs text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring"
disabled={loading}
/>
{/* 结果 */}
{result && (
{result}
{loading && (
)}
{/* 操作按钮 */}
{!loading && result && (
)}
)}