Updated on 2026-08-14

This commit is contained in:
Tangem 2026-07-01 14:50:27 +05:00
parent 4caff5dc00
commit dd0a223583
5 changed files with 33 additions and 2 deletions

View file

@ -13,5 +13,6 @@ dependencies {
/** Core */
implementation(projects.core.decompose)
implementation(projects.core.ui)
implementation(projects.core.analytics.models)
}

View file

@ -1,5 +1,6 @@
package com.tangem.feature.usedesk.api
import com.tangem.core.analytics.models.AnalyticsParam
import com.tangem.core.decompose.factory.ComponentFactory
import com.tangem.core.ui.decompose.ComposableContentComponent
@ -8,6 +9,13 @@ interface UsedeskComponent : ComposableContentComponent {
data class Params(
/** User wallet id (hex string) sent to Usedesk as the client email to identify the user. */
val userWalletId: String? = null,
/**
* Source of the chat opening. Drives the analytics source and the Usedesk additional fields,
* which the component maps internally (e.g. [AnalyticsParam.ScreensSources.Swap] -> `swap`).
*/
val source: AnalyticsParam.ScreensSources = AnalyticsParam.ScreensSources.Settings,
/** Optional message sent to the chat on behalf of the user right after initialization. */
val prefilledMessage: String? = null,
)
interface Factory : ComponentFactory<Params, UsedeskComponent>