chore: 移除 SwitchPanel 未使用的 calculateStats 导入

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
claude-code-best
2026-04-22 00:50:27 +08:00
parent 74682b2a82
commit 391e0c233a

View File

@@ -2,7 +2,6 @@ import React from 'react'
import { Box, Text } from '@anthropic/ink'
import type { Creature } from '../types'
import { getCreatureName } from '../core/creature'
import { calculateStats } from '../core/creature'
const CYAN = 'ansi:cyan'
const GREEN = 'ansi:green'
@@ -23,10 +22,6 @@ export function SwitchPanel({ party, activeId, onSelect, onCancel }: SwitchPanel
<Box flexDirection="column" borderStyle="round" paddingX={1}>
<Text bold color={CYAN}> </Text>
{party.map((creature, i) => {
const stats = calculateStats(creature)
const isActive = creature.id === activeId
const hpPct = 100 // No current HP tracking in v2, assume full
const hpColor = hpPct > 50 ? GREEN : hpPct > 25 ? YELLOW : RED
return (
<Box key={creature.id}>