import { Box, Text, useInput } from 'ink' import React from 'react' import { Select } from './CustomSelect/select' import { getTheme } from '../utils/theme' import Link from './Link' interface Props { onDone: () => void } export function CostThresholdDialog({ onDone }: Props): React.ReactNode { // Handle Ctrl+C, Ctrl+D and Esc useInput((input, key) => { if ((key.ctrl && (input === 'c' || input === 'd')) || key.escape) { onDone() } }) return ( You've spent $5 on AI model API calls this session. Learn more about monitoring your AI usage costs: