onPatch({ prompt_template: v })}
language="markdown"
height={computeEditorHeight(preset.prompt_template)}
lineNumbers="off"
placeholders={placeholders}
/>
{/* The three `{{…}}` tokens are passed as values, never written into the
catalog, where i18next would interpolate them away. */}
Type {"{{token}}"} to see available placeholders.{" "}
{"{{url}}"} and{" "}
{"{{title}}"} are
substituted when the action runs.
);
}
function PresetEditor({
presets,
baseline,
onChange,
addLabel,
}: {
presets: GitHubActionPreset[];
baseline: GitHubActionPreset[];
onChange: (presets: GitHubActionPreset[]) => void;
addLabel: string;
}) {
const [expandedId, setExpandedId] = useState