import { type TransferNode } from '@vegaprotocol/types'; import { ActiveRewardCard } from '../rewards-container/active-rewards'; import { useT } from '../../lib/use-t'; export const GamesContainer = ({ data, currentEpoch, }: { data: TransferNode[]; currentEpoch: number; }) => { const t = useT(); if (!data || data.length === 0) { return (

{t('There are currently no games available.')}

); } return (
{data.map((game, i) => { // TODO: Remove `kind` prop from ActiveRewardCard const { transfer } = game; if ( transfer.kind.__typename !== 'RecurringTransfer' || !transfer.kind.dispatchStrategy?.dispatchMetric ) { return null; } return ( ); })}
); };