{mode === "configs" ? (
<>
openAdd()}
/>
move(-1)}
/>
move(1)}
/>
{rows.map((r) => {
if (r.type === "group")
return (
);
if (r.type === "folder") {
const sel = selection?.type === "folder" && selection.kind === r.kind && selection.name === r.name;
return (
);
}
const c = r.config;
return (
);
})}
{draft.length === 0 && (
No run configurations added.
{" "}
{isMac() ? "⌘N" : "Alt+Insert"}
)}
>
) : (
<>
Templates
{templateTypes.map((t) => {
const sel = selection?.type === "template" && selection.kind === t.id;
return (
);
})}
>
)}
{mode === "templates" ? (
currentTemplate ? (
<>
New configurations of this type start with these values.
>
) : (
Select a configuration type
)
) : current ? (
) : selection?.type === "folder" ? (
renameFolder(selection.kind, selection.name, to)}
/>
) : (
or select run configuration to edit
)}