import { useT } from '../../lib/use-t'; import { type EnrichedRewardTransfer } from '../../lib/hooks/use-rewards'; import { useVegaWallet } from '@vegaprotocol/wallet-react'; import { useStakeAvailable } from '../../lib/hooks/use-stake-available'; import { useMyTeam } from '../../lib/hooks/use-my-team'; import { ActiveRewardCard } from '../rewards-container/reward-card'; export const GamesContainer = ({ data, currentEpoch, }: { data: EnrichedRewardTransfer[]; currentEpoch: number; }) => { const t = useT(); const { pubKey } = useVegaWallet(); const { team } = useMyTeam(); const { stakeAvailable, isEligible, requiredStake } = useStakeAvailable(); const requirements = pubKey ? { isEligible, stakeAvailable, requiredStake, team, pubKey, } : undefined; if (!data || data.length === 0) { return (
{t('Currently no active games on the network.')}
); } return (