skyjo-fe/src/components/CardCacheOld.tsx
pb-coding 1e549de4fb wip
2023-09-23 12:18:34 +02:00

21 lines
376 B
TypeScript

import { FC } from "react";
import { Player } from "../types/gameTypes";
type CardCacheProps = {
playersData: Player | undefined;
};
const CardCache: FC<CardCacheProps> = ({ playersData }) => {
if (!playersData?.cardCache) {
return null;
}
return (
<div>
<p>Card Cache: {playersData.cardCache.value}</p>
</div>
);
};
export default CardCache;