Updated on 2026-08-14
This commit is contained in:
parent
772ec7b53a
commit
2f5b70dfaa
54 changed files with 261 additions and 202 deletions
|
|
@ -35,5 +35,6 @@ data class NavigationButton(
|
|||
val showProgress: Boolean = false,
|
||||
val isEnabled: Boolean = true,
|
||||
val isDimmed: Boolean = false,
|
||||
val isHapticClick: Boolean = false,
|
||||
val onClick: () -> Unit,
|
||||
)
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
package com.tangem.common.ui.navigationButtons
|
||||
|
||||
interface NavigationModelCallback {
|
||||
fun onNavigationResult(navigationUM: NavigationUM)
|
||||
}
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
package com.tangem.common.ui.navigationButtons
|
||||
|
||||
import androidx.annotation.DrawableRes
|
||||
import androidx.compose.runtime.Immutable
|
||||
import com.tangem.core.ui.extensions.TextReference
|
||||
|
||||
@Immutable
|
||||
sealed class NavigationUM {
|
||||
data class Content(
|
||||
val title: TextReference,
|
||||
val subtitle: TextReference?,
|
||||
@DrawableRes val backIconRes: Int,
|
||||
val backIconClick: () -> Unit,
|
||||
@DrawableRes val additionalIconRes: Int? = null,
|
||||
val additionalIconClick: (() -> Unit)? = null,
|
||||
val primaryButton: NavigationButton,
|
||||
val prevButton: NavigationButton? = null,
|
||||
val secondaryPairButtonsUM: Pair<NavigationButton, NavigationButton>? = null,
|
||||
) : NavigationUM()
|
||||
|
||||
data object Empty : NavigationUM()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue