import React from 'react'; import type { ApiHandCard } from '../../api/model'; import './Hand.css' type HandCardProps = { card: ApiHandCard, isSelected: boolean, onClick: () => void } const HandCard = ({card, isSelected, onClick}: HandCardProps) => { let playableClass = card.playability.playable ? '' : 'hand-card-unplayable'; let selectedClass = isSelected ? 'hand-card-img-selected' : ''; return