package app.k9mail.feature.account.setup.ui.createaccount

import androidx.compose.runtime.Composable
import app.k9mail.core.ui.compose.common.annotation.PreviewDevices
import app.k9mail.core.ui.compose.designsystem.PreviewWithTheme
import app.k9mail.feature.account.common.data.InMemoryAccountStateRepository
import app.k9mail.feature.account.setup.AccountSetupExternalContract.AccountCreator.AccountCreatorResult
import app.k9mail.feature.account.setup.ui.fake.FakeAppNameProvider

@Composable
@PreviewDevices
internal fun AccountOptionsScreenK9Preview() {
    PreviewWithTheme {
        CreateAccountScreen(
            onNext = {},
            onBack = {},
            viewModel = CreateAccountViewModel(
                createAccount = { AccountCreatorResult.Success("irrelevant") },
                accountStateRepository = InMemoryAccountStateRepository(),
            ),
            appNameProvider = FakeAppNameProvider,
        )
    }
}
