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