Play liveChoose your opponent
Join
32fe633
13 lines · 621 Bytes Raw Permalink History
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}