package com.tt.honeyDue.platform

import android.net.Uri
import androidx.compose.runtime.Composable
import com.tt.honeyDue.models.Contractor
import com.tt.honeyDue.ui.components.ContractorImportHandler as ContractorImportHandlerImpl

@Composable
actual fun ContractorImportHandler(
    pendingContractorImportUri: Any?,
    onClearContractorImport: () -> Unit,
    onImportSuccess: (Contractor) -> Unit
) {
    // Cast to Android Uri
    val uri = pendingContractorImportUri as? Uri

    ContractorImportHandlerImpl(
        pendingImportUri = uri,
        onClearImport = onClearContractorImport,
        onImportSuccess = onImportSuccess
    )
}
