( value: AccountSnapshot["type"] | null | undefined, )
| 105 | } |
| 106 | |
| 107 | export function formatAccountTypeLabel( |
| 108 | value: AccountSnapshot["type"] | null | undefined, |
| 109 | ) { |
| 110 | if (value === "chatgpt") { |
| 111 | return "ChatGPT account"; |
| 112 | } |
| 113 | if (value === "apikey") { |
| 114 | return "API key"; |
| 115 | } |
| 116 | return "Connected account"; |
| 117 | } |
| 118 | |
| 119 | export function formatWindowDuration(valueMins: number | null | undefined) { |
| 120 | if (typeof valueMins !== "number" || !Number.isFinite(valueMins) || valueMins <= 0) { |
no outgoing calls
no test coverage detected