package com.tangem.feature.onboarding.presentation.wallet2.model

import androidx.compose.ui.text.input.TextFieldValue

/**
[REDACTED_AUTHOR]
 */
data class UiActions(
    val introActions: IntroUiAction,
    val aboutActions: AboutUiAction,
    val yourSeedPhraseActions: YourSeedPhraseUiAction,
    val checkSeedPhraseActions: CheckSeedPhraseUiAction,
    val importSeedPhraseActions: ImportSeedPhraseUiAction,
    val menuChatClick: () -> Unit,
    val menuNavigateBackClick: () -> Unit,
)

data class IntroUiAction(
    val buttonCreateWalletClick: () -> Unit,
    val buttonOtherOptionsClick: () -> Unit,
)

data class AboutUiAction(
    val buttonReadMoreAboutSeedPhraseClick: () -> Unit,
    val buttonGenerateSeedPhraseClick: () -> Unit,
    val buttonImportSeedPhraseClick: () -> Unit,
)

data class YourSeedPhraseUiAction(
    val buttonContinueClick: () -> Unit,
    val onSelectType: (SegmentSeedType) -> Unit,
)

data class CheckSeedPhraseUiAction(
    val secondTextFieldAction: TextFieldUiAction,
    val seventhTextFieldAction: TextFieldUiAction,
    val eleventhTextFieldAction: TextFieldUiAction,
    val buttonCreateWalletClick: () -> Unit,
)

data class ImportSeedPhraseUiAction(
    val phraseTextFieldAction: TextFieldUiAction,
    val passTextFieldAction: TextFieldUiAction,
    val suggestedPhraseClick: (Int) -> Unit,
    val onPassphraseInfoClick: () -> Unit,
    val buttonCreateWalletClick: () -> Unit,
)

data class TextFieldUiAction(
    val onTextFieldChanged: (TextFieldValue) -> Unit,
    val onFocusChanged: (Boolean) -> Unit = {},
)



enum class SeedPhraseField(val index: Int) {
    Second(index = 1),
    Seventh(index = 6),
    Eleventh(index = 10),
}