import { Box, Text } from 'ink'; import TextInput from 'ink-text-input'; import type { Theme } from '../theme'; interface Props { command: string; theme: Theme; onChange: (value: string) => void; onSubmit: (value: string) => void; } /** * Single-line input modal pre-filled with a finding's remediation * command. Cursor lands on the first `` if one is * present (resolved by the parent before `command` reaches us — we * just render whatever we're given). Enter submits, Esc cancels at * the parent level via the keymap. */ export function RemediateModal({ command, theme, onChange, onSubmit }: Props) { return ( Remediate Edit the command, then press Enter to run (Esc to cancel). $ ); }