package eu.gaudian.translator.view.hints

import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.tooling.preview.Preview
import eu.gaudian.translator.R

/**
 * Migrated API Key hint using markdown-based format.
 * Content is loaded from localized assets/hints based on device locale.
 */
@Composable
fun getApiKeyHint() = Hint (
        titleRes = R.string.hint_how_to_connect_to_an_ai,
        elements = listOf(
            HintElement.LocalizedMarkdown("api_key_hint")
        )
    )



@Composable
fun ApiKeyHint() {
    getApiKeyHint().Render()
}

@Preview
@Composable
fun ApiKeyHintPreview() {
    MaterialTheme {
        ApiKeyHint()
    }
}
