'use client' import { RiCheckLine, RiCloseLine } from '@remixicon/react' import type { AttemptResult, Translate } from './types' type AttemptHistoryItemProps = { attempt: AttemptResult t: Translate } export default function AttemptHistoryItem({ attempt, t }: AttemptHistoryItemProps) { return (
{attempt.success ? ( ) : ( )}
{attempt.success ? t('challenges.player.status.success') : t('challenges.player.status.failed')}
{new Date(attempt.timestamp).toLocaleTimeString()}
{attempt.thinking && (
{t('challenges.player.modelThinking', 'Thinking')}
{attempt.thinking}
)} {attempt.message && (
{attempt.message}
)} {attempt.rating !== undefined && (
{t('challenges.leaderboard.rating')}: {attempt.rating}/10
)}
) }