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