import { ArrowRight, Clock3 } from 'lucide-react'; import type { ProfilePlayedWorkSummary, ProfilePlayStatsResponse, ProfileSaveArchiveSummary, } from '../../../packages/shared/src/contracts/runtime'; import { PlatformAsyncStatePanel } from '../common/PlatformAsyncStatePanel'; import { PlatformEmptyState } from '../common/PlatformEmptyState'; import { PlatformFieldLabel } from '../common/PlatformFieldLabel'; import { PlatformProfileContentRow } from '../common/PlatformProfileContentRow'; import { PlatformProfileSkeletonList } from '../common/PlatformProfileSkeletonList'; import { PlatformProfileSummaryHeader } from '../common/PlatformProfileSummaryHeader'; import { PlatformPillBadge } from '../common/PlatformPillBadge'; import { PlatformStatusMessage } from '../common/PlatformStatusMessage'; import { ResolvedAssetImage } from '../ResolvedAssetImage'; import { PlatformProfileSecondaryModalShell } from './PlatformProfileModalShell'; import { formatCompactPlayTime, formatPlayedWorkId, formatPlayedWorkType, formatSnapshotTime, formatTotalPlayTimeHours, } from '../rpg-entry/rpgEntryProfileDashboardPresentation'; import { formatPlatformWorkDisplayName } from '../rpg-entry/rpgEntryWorldPresentation'; type PlatformProfilePlayedWorksModalProps = { stats: ProfilePlayStatsResponse | null; isLoading: boolean; error: string | null; saveEntries: ProfileSaveArchiveSummary[]; saveError: string | null; isResumingSaveWorldKey: string | null; onClose: () => void; onOpenWork?: (work: ProfilePlayedWorkSummary) => void; onResumeSave: (entry: ProfileSaveArchiveSummary) => void; }; function SaveArchivePreview({ entry, className, }: { entry: ProfileSaveArchiveSummary; className: string; }) { return (