package com.tt.honeyDue.platform

import android.net.Uri
import androidx.compose.runtime.Composable
import com.tt.honeyDue.models.JoinResidenceResponse
import com.tt.honeyDue.ui.components.ResidenceImportHandler as ResidenceImportHandlerImpl

@Composable
actual fun ResidenceImportHandler(
    pendingResidenceImportUri: Any?,
    onClearResidenceImport: () -> Unit,
    onImportSuccess: (JoinResidenceResponse) -> Unit
) {
    // Cast to Android Uri
    val uri = pendingResidenceImportUri as? Uri

    ResidenceImportHandlerImpl(
        pendingImportUri = uri,
        onClearImport = onClearResidenceImport,
        onImportSuccess = onImportSuccess
    )
}
