import {Link} from 'react-router-dom'; import {useTranslation} from 'react-i18next'; import {ArrowRight, ListOrdered} from 'lucide-react'; import {Button} from '@/components/ui/button'; import {Card} from '@/components/ui/card'; import GameCover from './GameCover.jsx'; import FitText from './FitText.jsx'; /** * The first games of the user's own backlog order. */ export default function UpNextCard({games}) { const {t} = useTranslation(); return (

{t('DASHBOARD.UP_NEXT')}

{games.length === 0 ? (

{t('DASHBOARD.UP_NEXT_EMPTY')}

) : (
    {games.map((g, index) => (
  1. {index + 1}
  2. ))}
)}
); }