/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { Box } from 'ink'; import { type ReactNode } from 'react'; import { theme } from '../semantic-colors.js'; import { MarkdownDisplay } from '../utils/MarkdownDisplay.js'; import { RadioButtonSelect } from './shared/RadioButtonSelect.js'; type ConsentPromptProps = { // If a simple string is given, it will render using markdown by default. prompt: ReactNode; onConfirm: (value: boolean) => void; terminalWidth: number; }; export const ConsentPrompt = (props: ConsentPromptProps) => { const { prompt, onConfirm, terminalWidth } = props; return ( {typeof prompt === 'string' ? ( ) : ( prompt )} ); };