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

@Composable
fun SortingScreenHint() {
    getSortingScreenHint()
}

@Preview
@Composable
fun SortingScreenHintPreview() {
    MaterialTheme {
        SortingScreenHint()
    }
}
