import React from 'react' import { Box, Text, type Color } from '@anthropic/ink' import type { Egg } from '../types' const CYAN: Color = 'ansi:cyan' const YELLOW: Color = 'ansi:yellow' const GRAY: Color = 'ansi:white' interface EggViewProps { egg: Egg } /** * Egg status view showing hatch progress. */ export function EggView({ egg }: EggViewProps) { const percentage = Math.floor(((egg.totalSteps - egg.stepsRemaining) / egg.totalSteps) * 100) const filled = Math.round(percentage / 10) const empty = 10 - filled return ( Egg Status {/* ASCII egg */} . / \ | | \_/ {/* Progress */} Steps: {egg.totalSteps - egg.stepsRemaining} / {egg.totalSteps} {'█'.repeat(filled)} {'░'.repeat(empty)} {percentage}% {/* Tips */} Pet (+5) · Chat (+3) · Cmd (+1) Hatch: ~{egg.stepsRemaining} more interactions ) }