(seconds: number)
| 32 | }; |
| 33 | |
| 34 | export const getApproximateTime = (seconds: number) => { |
| 35 | const minutes = Math.floor(seconds / 60); |
| 36 | const hours = Math.floor(minutes / 60); |
| 37 | const days = Math.floor(hours / 24); |
| 38 | |
| 39 | if (days > 0) { |
| 40 | return `${days} days`; |
| 41 | } |
| 42 | if (hours > 0) { |
| 43 | return `${hours} hours`; |
| 44 | } |
| 45 | if (minutes > 0) { |
| 46 | return `${minutes} minutes`; |
| 47 | } |
| 48 | return `${seconds} seconds`; |
| 49 | }; |
| 50 | |
| 51 | export const getPathFromToolType = (toolType: ToolType) => { |
| 52 | switch (toolType) { |
nothing calls this directly
no outgoing calls
no test coverage detected