import {Link} from 'react-router-dom'; import {useTranslation} from 'react-i18next'; import {ArrowRight, Gamepad2} from 'lucide-react'; import {Button} from '@/components/ui/button'; import {Card} from '@/components/ui/card'; import {cn} from '@/lib/utils'; import GameCover from './GameCover.jsx'; import {formatPlaytime} from '../utils/games.js'; /** * @param wide four games per row instead of two, for the large tile */ export default function CurrentlyPlayingCard({games, syncing, wide}) { const {t} = useTranslation(); return (

{t('DASHBOARD.CURRENTLY_PLAYING')}

{games.length === 0 ? (

{syncing ? t('LIBRARY.SYNCING_FIRST_TIME') : t('DASHBOARD.NOTHING_PLAYING')}

) : ( )}
); }