/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import type React from 'react'; import { Box, Text } from 'ink'; import { RadioButtonSelect } from './shared/RadioButtonSelect.js'; import { Colors } from '../colors.js'; interface ProQuotaDialogProps { currentModel: string; fallbackModel: string; onChoice: (choice: 'auth' | 'continue') => void; } export function ProQuotaDialog({ currentModel, fallbackModel, onChoice, }: ProQuotaDialogProps): React.JSX.Element { const items = [ { label: 'Change auth (executes the /auth command)', value: 'auth' as const, }, { label: `Continue with ${fallbackModel}`, value: 'continue' as const, }, ]; const handleSelect = (choice: 'auth' | 'continue') => { onChoice(choice); }; return ( Pro quota limit reached for {currentModel}. ); }