package com.tt.honeyDue.platform

import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember

/**
 * JVM/Desktop implementation - biometric auth not available on desktop.
 */
class JvmBiometricAuthPerformer : BiometricAuthPerformer {
    override fun isBiometricAvailable(): Boolean = false

    override fun authenticate(
        title: String,
        subtitle: String,
        onResult: (BiometricResult) -> Unit
    ) {
        onResult(BiometricResult.NotAvailable)
    }
}

@Composable
actual fun rememberBiometricAuth(): BiometricAuthPerformer {
    return remember { JvmBiometricAuthPerformer() }
}
