import React, {FunctionComponent} from 'react'; import Card from "./Card"; interface Props { hand: string[]; actionOnClick: (cardString: string) => void; isHidden?: boolean; } const Hand: FunctionComponent = ({hand, actionOnClick, isHidden}) => { const isMyHand = !isHidden; return (
{ hand.map((card, index) => { return ( ) }) }
) } export default Hand;