// // Copyright 2026 Novaloop AG // // SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial. // Please see LICENSE files in the repository root for full details. // import SwiftUI #if IS_MAIN_APP /// Builds the HealthChat session-scoped hooks when a user session is created. nonisolated struct HealthChatUserSessionHook: UserSessionHookProtocol { func makeUserHooks(for clientProxy: ClientProxyProtocol) -> UserHooks { let apiService = HealthChatAPIService(tokenProvider: HealthChatOpenIDTokenProvider(clientProxy: clientProxy)) return UserHooks(extendedProfileSectionHook: HealthChatExtendedProfileSectionHook(extendedProfileService: ExtendedProfileService(clientProxy: clientProxy)), settingsScreenHook: HealthChatSettingsScreenHook(statusLoader: HealthChatAccountStatusLoader(apiService: apiService))) } func configure(_ userSettings: UserSettings, forHomeserver homeserver: String) -> UserSettings { userSettings } } #endif