'use client' import type { AttemptResult, Translate } from './types' import AttemptHistoryItem from './attempt-history-item' type AttemptHistoryProps = { attempts: AttemptResult[] t: Translate } export default function AttemptHistory({ attempts, t }: AttemptHistoryProps) { return (
{t('challenges.player.attemptHistory', 'Attempts')}
{attempts.length === 0 ? (
{t('challenges.player.noAttempts')}
) : (
{attempts.map(attempt => ( ))}
)}
) }