package com.tt.honeyDue.platform

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

/**
 * JS implementation - biometric auth not available in browser.
 */
class JsBiometricAuthPerformer : 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 { JsBiometricAuthPerformer() }
}
