+
{
+ const next = steps[Number(e.target.value)];
+ if (next && next.value !== value) onChange(next.value);
+ }}
+ />
+
+ {steps.map((v) => (
+
+ ))}
+
+
+ );
+}
+
+/** The mode menu, with the agent's on/off permissions option (Allow All) as a switch under it. */
+function ModePicker({
+ mode,
+ modeValue,
+ allowAll,
+ allowAllValue,
+ onChange,
+}: {
+ mode: AgentConfigOption;
+ modeValue: string | null;
+ allowAll: AgentConfigOption;
+ allowAllValue: string | null;
+ onChange: (option: string, value: string) => void;
+}) {
+ const tx = useTx();
+ const [open, setOpen] = useState(false);
+ const anchor = useRef