tome-web/client/game/cards/Hand.tsx

19 lines
324 B
TypeScript
Raw Normal View History

2021-09-23 23:34:33 -04:00
import React from 'react'
import {CardInstance} from '../types.ts'
import Card from './Card.tsx'
interface HandProps {
cards: CardInstance[]
}
export default function Hand(props: HandProps): JSX.Element {
const {cards} = props
return (
<>
{cards.map((card) => <Card cardKey={card.key} />)}
</>
)
}