(remoteUrl?: string)
| 85 | |
| 86 | // Custom hook to manage services |
| 87 | function useTUIChatServices(remoteUrl?: string) { |
| 88 | const isRemoteMode = useMemo(() => !!remoteUrl, [remoteUrl]); |
| 89 | |
| 90 | const { services, allReady: allServicesReady } = useServices<{ |
| 91 | auth: AuthServiceState; |
| 92 | config: ConfigServiceState; |
| 93 | model: ModelServiceState; |
| 94 | mcp: MCPServiceState; |
| 95 | apiClient: ApiClientServiceState; |
| 96 | update: UpdateServiceState; |
| 97 | toolPermissions: ToolPermissionServiceState; |
| 98 | }>([ |
| 99 | "auth", |
| 100 | "config", |
| 101 | "model", |
| 102 | "mcp", |
| 103 | "apiClient", |
| 104 | "update", |
| 105 | "toolPermissions", |
| 106 | ]); |
| 107 | |
| 108 | return { services, allServicesReady, isRemoteMode }; |
| 109 | } |
| 110 | |
| 111 | // Organization names are no longer available (Hub integration removed) |
| 112 | function useOrganizationName(_organizationId?: string): string | undefined { |
no test coverage detected