import * as React from 'react' import { useExitOnCtrlCDWithKeybindings } from '../../hooks/useExitOnCtrlCDWithKeybindings.js' import { Box, Text } from '@anthropic/ink' type Props = { instructions?: string } export function AgentNavigationFooter({ instructions = 'Press ↑↓ to navigate · Enter to select · Esc to go back', }: Props): React.ReactNode { const exitState = useExitOnCtrlCDWithKeybindings() return ( {exitState.pending ? `Press ${exitState.keyName} again to exit` : instructions} ) }