import { Box, Text } from "ink" export interface ClaudeEnvPresetOption { key: string title: string description: string tag?: string } const PRESET_OPTIONS: ClaudeEnvPresetOption[] = [ { key: "recommend", title: "Recommend setting", description: "Use recommended model defaults from export config", tag: "Recommended", }, { key: "latest", title: "Latest setting", description: "Load current values from the selected settings file", tag: "Current", }, { key: "skip", title: "Skip to editor", description: "Go directly to the environment editor with current draft", }, ] export { PRESET_OPTIONS } export function ClaudeEnvironmentPresetSelector(props: { selected: number; settingsTarget: string }) { return ( ──────────────────────────────────────────────────────────────────────────── Load Preset or Continue Optionally load a preset before editing. Target: {props.settingsTarget} Controls: ↑/↓ move · Enter continue · Esc cancel {PRESET_OPTIONS.map((option, index) => ( {props.selected === index ? "›" : " "} {option.title} {option.tag ?? ""} {option.description} ))} ) }