import { Button, ButtonGroup, Classes, Intent } from '@blueprintjs/core';
import React from 'react';
import type { ApiHandCard, ApiPlayerMove } from '../../api/model';
import './Hand.css'
type HandProps = {
cards: ApiHandCard[],
wonderUpgradable: boolean,
prepareMove: (move: ApiPlayerMove) => void
}
export const Hand = ({cards, wonderUpgradable, prepareMove}: HandProps) => {
return
{cards.map((c, i) => )}
;
};
type HandCardProps = {
card: ApiHandCard,
wonderUpgradable: boolean,
prepareMove: (move: ApiPlayerMove) => void
}
const HandCard = ({card, wonderUpgradable, prepareMove}: HandCardProps) => {
let playableClass = card.playability.playable ? '' : 'unplayable';
return
};
const ActionButtons = ({card, wonderUpgradable, prepareMove}) =>
;