import React, { type ReactNode } from 'react' import { useExitOnCtrlCDWithKeybindings } from '../../hooks/useExitOnCtrlCDWithKeybindings.js' import { Box, Text } from '../../ink.js' import { ConfigurableShortcutHint } from '../ConfigurableShortcutHint.js' import { Byline } from '../design-system/Byline.js' import { KeyboardShortcutHint } from '../design-system/KeyboardShortcutHint.js' type Props = { instructions?: ReactNode } export function WizardNavigationFooter({ instructions = ( ), }: Props): ReactNode { const exitState = useExitOnCtrlCDWithKeybindings() return ( {exitState.pending ? `Press ${exitState.keyName} again to exit` : instructions} ) }