/** * @license * Copyright 2026 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { render, Box, Text } from 'ink'; import { Card } from '../src/ui/components/shared/Card.js'; import { ToolCallStatus, StreamingState } from '../src/ui/types.js'; import { StreamingContext } from '../src/ui/contexts/StreamingContext.js'; const CardDemo = () => { return ( Card Component Demo Default (100% width, Pending status): This is a standard card that takes up the full width of the terminal container by default. Fixed Width (40 characters, Success status): This card has a fixed width of 40 characters. Error Status with Prefix: Failed to connect to the production database after 3 attempts. Canceled Status without Prefix: The user canceled the long-running task. Executing Status: Refactoring the codebase to use the new Card component... Press Ctrl+C to exit ); }; render();