package com.tt.honeyDue.ui.theme

import androidx.compose.material3.ColorScheme
import androidx.compose.runtime.Composable

/**
 * Dynamic color (Material You) support detection.
 *
 * Returns `true` only on Android 12+ (API 31, Build.VERSION_CODES.S) where the
 * system provides `dynamicLightColorScheme` / `dynamicDarkColorScheme` derived
 * from the user's wallpaper. All other platforms and older Android releases
 * return `false`.
 */
expect fun isDynamicColorSupported(): Boolean

/**
 * Returns the system-provided dynamic color scheme when supported, or `null`
 * when dynamic color is unavailable on this platform / OS version.
 *
 * Must be called from a composable scope because Android's implementation
 * needs `LocalContext.current`.
 */
@Composable
expect fun rememberDynamicColorScheme(darkTheme: Boolean): ColorScheme?
