import figures from 'figures'; import { GITHUB_ACTION_SETUP_DOCS_URL } from '../../constants/github-app.js'; import { Box, Text } from '@anthropic/ink'; import { useKeybinding } from '../../keybindings/useKeybinding.js'; import type { Warning } from './types.js'; interface WarningsStepProps { warnings: Warning[]; onContinue: () => void; } export function WarningsStep({ warnings, onContinue }: WarningsStepProps) { // Enter to continue useKeybinding('confirm:yes', onContinue, { context: 'Confirmation' }); return ( <> {figures.warning} Setup Warnings We found some potential issues, but you can continue anyway {warnings.map((warning, index) => ( {warning.title} {warning.message} {warning.instructions.length > 0 && ( {warning.instructions.map((instruction, i) => ( • {instruction} ))} )} ))} Press Enter to continue anyway, or Ctrl+C to exit and fix issues You can also try the manual setup steps if needed:{' '} {GITHUB_ACTION_SETUP_DOCS_URL} ); }