/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import React from 'react'; import { Box, Text } from 'ink'; import Spinner from 'ink-spinner'; import { Colors } from '../colors.js'; interface LoadingIndicatorProps { isLoading: boolean; currentLoadingPhrase: string; elapsedTime: number; } export const LoadingIndicator: React.FC = ({ isLoading, currentLoadingPhrase, elapsedTime, }) => { if (!isLoading) { return null; // Don't render anything if not loading } return ( {currentLoadingPhrase} ({elapsedTime}s) {/* Spacer */} (ESC to cancel) ); };