(type: AITaskType)
| 11 | import type { AITaskStatus, AITaskType } from '../types/type' |
| 12 | |
| 13 | export const getTaskIcon = (type: AITaskType) => { |
| 14 | switch (type) { |
| 15 | case 'chat': |
| 16 | case 'retry': |
| 17 | case 'edit_resend': |
| 18 | case 'model_change': |
| 19 | return <MessageOutlined /> |
| 20 | case 'crosstab_cell': |
| 21 | return <TableOutlined /> |
| 22 | case 'object_generation': |
| 23 | return <BulbOutlined /> |
| 24 | default: |
| 25 | return <MessageOutlined /> |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | export const getTaskStatusDisplay = (status: AITaskStatus) => { |
| 30 | switch (status) { |
nothing calls this directly
no outgoing calls
no test coverage detected