package com.example.kmptpc_compose_sample.demos.foundation

import androidx.compose.foundation.layout.*
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.material.*
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp

/**
 * 平台实现：OHOS 上展示 Skiko 能力（URIManager.openUri、ClipboardManager、currentSystemTheme），
 * 其他平台展示“仅 OHOS 可用”占位。
 */
@Composable
internal expect fun SkikoCapabilitiesDemoContent()

@Composable
internal fun SkikoCapabilitiesDemo() {
    Column(
        modifier = Modifier
            .fillMaxSize()
            .verticalScroll(rememberScrollState())
            .padding(16.dp),
        verticalArrangement = Arrangement.spacedBy(16.dp)
    ) {
        Text(
            text = "Skiko 能力测试",
            style = MaterialTheme.typography.h5
        )
        Text(
            text = "测试 Skiko 提供的：打开 URI、剪贴板读写、当前系统主题（OHOS 平台）",
            style = MaterialTheme.typography.body2,
            color = MaterialTheme.colors.onSurface.copy(alpha = 0.7f)
        )
        SkikoCapabilitiesDemoContent()
    }
}
