Updated on 2026-08-14
This commit is contained in:
parent
cef0618791
commit
c6fc619530
76 changed files with 5247 additions and 176 deletions
|
|
@ -6,10 +6,12 @@ import androidx.compose.runtime.State
|
|||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.unit.Dp
|
||||
import com.tangem.core.decompose.context.AppComponentContext
|
||||
import com.tangem.core.decompose.factory.ComponentFactory
|
||||
import com.tangem.core.ui.components.bottomsheets.state.BottomSheetState
|
||||
import com.tangem.core.ui.decompose.ComposableContentComponent
|
||||
|
||||
@Stable
|
||||
interface FeedEntryComponent {
|
||||
interface FeedEntryComponent : ComposableContentComponent {
|
||||
|
||||
@Composable
|
||||
fun BottomSheetContent(
|
||||
|
|
@ -18,7 +20,7 @@ interface FeedEntryComponent {
|
|||
modifier: Modifier,
|
||||
)
|
||||
|
||||
interface Factory {
|
||||
fun create(context: AppComponentContext): FeedEntryComponent
|
||||
interface Factory : ComponentFactory<FeedEntryRoute, FeedEntryComponent> {
|
||||
fun create(context: AppComponentContext, entryRoute: FeedEntryRoute?): FeedEntryComponent
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
package com.tangem.features.feed.entry.components
|
||||
|
||||
import com.tangem.domain.appcurrency.model.AppCurrency
|
||||
import com.tangem.domain.markets.TokenMarketParams
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||
@Serializable
|
||||
sealed interface FeedEntryRoute {
|
||||
|
||||
@Serializable
|
||||
data class MarketTokenDetails(
|
||||
val token: TokenMarketParams,
|
||||
val appCurrency: AppCurrency,
|
||||
val shouldShowPortfolio: Boolean,
|
||||
val analyticsParams: AnalyticsParams? = null,
|
||||
) : FeedEntryRoute {
|
||||
|
||||
@Serializable
|
||||
data class AnalyticsParams(
|
||||
val blockchain: String?,
|
||||
val source: String,
|
||||
)
|
||||
}
|
||||
|
||||
@Serializable
|
||||
data object MarketTokenList : FeedEntryRoute
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue