+
setSearch(e.target.value)}
+ />
+
+
+ {(["all", "bash", "powershell", "adhoc"] as Tab[]).map((t) => (
+
+ ))}
+
+
+ {showAdhocCards && (
+
+
+
+ {
+ const f = e.target.files?.[0];
+ if (f) onImportAdhoc(f);
+ e.target.value = "";
+ }}
+ />
+
+ )}
+
+ {showLibrary &&
+ groups.map(
+ (g) =>
+ g.steps.length > 0 && (
+
+
+ {g.label}
+
+
+
+ {g.steps.map((s) => (
+ onSelect(s.step_id)} />
+ ))}
+
+
+ ),
+ )}
+
+ {showLibrary && filtered.length === 0 && (
+
No steps match your search.
+ )}
+
+
+ Click a card to append it to the workflow · manage the library on the{" "}
+
+ Steps
+ {" "}
+ page.
+
+
+