import { Stack } from '@/components/atoms' import { CodeError } from '@/types/errors' import { ProjectFile } from '@/types/project' import { ErrorPanelFileCard } from './ErrorPanelFileCard' interface ErrorPanelFileListProps { files: ProjectFile[] errorsByFile: Record issueLabel: string issuesLabel: string openLabel: string repairLabel: string lineLabel: string fixedLabel: string showCodeLabel: string hideCodeLabel: string isRepairing: boolean onFileSelect: (fileId: string) => void onRepairFile: (fileId: string) => void onRepairError: (error: CodeError) => void } export function ErrorPanelFileList({ files, errorsByFile, issueLabel, issuesLabel, openLabel, repairLabel, lineLabel, fixedLabel, showCodeLabel, hideCodeLabel, isRepairing, onFileSelect, onRepairFile, onRepairError, }: ErrorPanelFileListProps) { return ( {Object.entries(errorsByFile).map(([fileId, fileErrors]) => { const file = files.find((entry) => entry.id === fileId) if (!file) return null return ( ) })} ) }