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 Category Hint Screen using markdown-based format.
 * Content is loaded from localized assets/hints based on device locale.
 */
@Composable
fun getCategoryHintScreen(): Hint {
    return Hint(
        titleRes = R.string.category_hint_intro,
        elements = listOf(
            HintElement.LocalizedMarkdown("category_hint")
        )
    )
}

@Composable
fun CategoryHintScreen() {
    getCategoryHintScreen().Render()
}

@Preview
@Composable
fun CategoryHintScreenPreview() {
    MaterialTheme {
        CategoryHintScreen()
    }
}
