import { WorkflowCard } from "./WorkflowCard.js";
export function WorkflowPicker({ task, selectedOption, current, total }) {
if (!task) {
return `
Step 4
No workflow selected
`;
}
return `
Step 4
${escapeHtml(task.name)}
${current}/${total}
${WorkflowCard(task.id, "A", "Full Auto", ["Runs the task end to end", "Updates records automatically", "Sends the final customer reply"], "No review", selectedOption)}
${WorkflowCard(task.id, "B", "Review First", ["Prepares the work for you", "Waits for a quick approval", "Sends only after review"], "One approval", selectedOption)}
${WorkflowCard(task.id, "C", "Log Only", ["Captures request details", "Stores the context for later", "Leaves the customer reply to you"], "Manual reply", selectedOption)}