import React from 'react' import {CardKey, getCardSrc} from './cards.ts' const EMPTY_SPACE = '-' interface CardTokenProps { cardKey: CardKey | null onClick?: () => void } export default function CardToken(props: CardTokenProps): JSX.Element { const {onClick, cardKey} = props if (cardKey == null) { return ( ) } const card = getCardSrc(cardKey) return ( ) }