(job: IndexJob)
| 127 | } |
| 128 | |
| 129 | function jobSentence(job: IndexJob): string { |
| 130 | switch (job.status) { |
| 131 | case 'indexing': |
| 132 | return text.jobIndexing; |
| 133 | case 'done': |
| 134 | return text.jobDone; |
| 135 | case 'error': |
| 136 | return text.jobError(job.error); |
| 137 | default: |
| 138 | return text.jobUnknown; |
| 139 | } |
| 140 | } |
| 141 | |
| 142 | export default function ProjectsPanel(props: ProjectsPanelProps): JSX.Element { |
| 143 | const { source, project } = props; |