Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | import { NewTaskRequest } from "@shared/proto/cline/task" import React from "react" import { TaskServiceClient } from "@/services/grpc-client" import QuickWinCard from "./QuickWinCard" import { QuickWinTask, quickWinTasks } from "./quickWinTasks" export const SuggestedTasks: React.FC<{ shouldShowQuickWins: boolean }> = ({ shouldShowQuickWins }) => { const handleExecuteQuickWin = async (prompt: string) => { await TaskServiceClient.newTask(NewTaskRequest.create({ text: prompt, images: [] })) } if (shouldShowQuickWins) { return ( <div className="px-4 pt-1 pb-3 select-none"> {" "} <h2 className="text-sm font-medium mb-2.5 text-center text-gray"> Quick <span className="text-white">[Wins]</span> with AI-Hydro </h2> <div className="flex flex-col space-y-1"> {" "} {quickWinTasks.map((task: QuickWinTask) => ( <QuickWinCard key={task.id} onExecute={() => handleExecuteQuickWin(task.prompt)} task={task} /> ))} </div> </div> ) } } |