实时对局选你的对手
加入
What shoal-games changes in this game
由 @shoal shoal 从 main 的 1b3bc26 分出 · 领先 1 个提交,比 main 落后 0 个
接续
贡献回去
13 行 · 621 Bytes 原始文件 永久链接 历史
1// In place of the upstream's CardFace (src/build swaps it in for the upstream's hand cards): 无名杀's card, filling the
2// box the upstream gives it.
3import { cardClass, CardInner } from './Card';
4
5export type CardFaceSize = 'normal' | 'large' | 'small';
6
7export function CardFace({ name, suit, rank, size = 'normal', damageType }: { name: string; suit?: string; rank?: string; size?: CardFaceSize; damageType?: string }) {
8 return (
9 <div className={cardClass({ name, suit, damageType }, `nm-card-fill ${size}`)}>
10 <CardInner name={name} suit={suit} rank={rank} damageType={damageType} />
11 </div>
12 );
13}