package eu.gaudian.translator.view.hints

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

/**
 * Migrated TranslationScreenHint using markdown-based format.
 * Content is loaded from localized assets/hints based on device locale.
 */
@Composable
fun getTranslationScreenHint() = Hint(
    titleRes = R.string.hint_translate_how_it_works,
    elements = listOf(
        HintElement.LocalizedMarkdown("translation_hint")
    )
)

@Composable
fun TranslationScreenHint() {
    getTranslationScreenHint().Render()
}

@Preview
@Composable
fun TranslationScreenHintPreview() {
    getTranslationScreenHint().Render()
}
