( provisionerJob?: ProvisionerJob, )
| 1 | import type { ProvisionerJob } from "#/api/typesGenerated"; |
| 2 | |
| 3 | export const getPendingStatusLabel = ( |
| 4 | provisionerJob?: ProvisionerJob, |
| 5 | ): string => { |
| 6 | if (!provisionerJob || provisionerJob.queue_size === 0) { |
| 7 | return "Pending"; |
| 8 | } |
| 9 | return `Position in queue: ${provisionerJob.queue_position}`; |
| 10 | }; |
no outgoing calls
no test coverage detected