| 32 | } | null; |
| 33 | |
| 34 | interface AvailableModelsProps { |
| 35 | isProUser?: boolean; |
| 36 | // Ob-Server + server props threaded to ModelHub |
| 37 | isUsingObServer?: boolean; |
| 38 | handleToggleObServer?: () => void; |
| 39 | showLoginMessage?: boolean; |
| 40 | isAuthenticated?: boolean; |
| 41 | quotaInfo?: QuotaInfo; |
| 42 | renderQuotaStatus?: () => React.ReactNode; |
| 43 | localServerOnline?: boolean; |
| 44 | checkLocalServer?: () => void; |
| 45 | customServers?: CustomServer[]; |
| 46 | onAddCustomServer?: (address: string) => void; |
| 47 | onRemoveCustomServer?: (address: string) => void; |
| 48 | onToggleCustomServer?: (address: string) => void; |
| 49 | onCheckCustomServer?: (address: string) => void; |
| 50 | appInferenceUrl?: string | null; |
| 51 | onSetAppInferenceUrl?: (url: string) => void; |
| 52 | } |
| 53 | |
| 54 | const formatBytes = (bytes: number, decimals = 2) => { |
| 55 | if (!+bytes) return '0 Bytes'; |
nothing calls this directly
no outgoing calls
no test coverage detected