| 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. |
| 3 | import { cardClass, CardInner } from './Card'; |
| 4 | |
| 5 | export type CardFaceSize = 'normal' | 'large' | 'small'; |
| 6 | |
| 7 | export 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 | } |
