import type { RecipeView } from '@tinywaste/game-core'; import { getItemArt } from '../../uiAssets'; import { AssetThumb } from '../AssetThumb'; export function RecipeCard({ recipe, busy, onCraft, }: { recipe: RecipeView; busy: boolean; onCraft: () => void; }) { const primaryOutput = recipe.outputs[0]; return (
{recipe.name}

{recipe.desc}

{recipe.timeCostMin} 分钟 · 精力 -{recipe.energyCost} 需求:{recipe.inputs.map((input) => `${input.name} ${input.owned}/${input.count}`).join(' · ')}
{recipe.disabledReason ? {recipe.disabledReason} : null}
); }