package com.tt.honeyDue.ui.screens

import androidx.compose.runtime.Composable
import androidx.lifecycle.viewmodel.compose.viewModel
import com.tt.honeyDue.viewmodel.DocumentViewModel
import com.tt.honeyDue.viewmodel.ResidenceViewModel

@Composable
fun AddDocumentScreen(
    residenceId: Int,
    initialDocumentType: String = "other",
    onNavigateBack: () -> Unit,
    onDocumentCreated: () -> Unit,
    documentViewModel: DocumentViewModel = viewModel { DocumentViewModel() },
    residenceViewModel: ResidenceViewModel = viewModel { ResidenceViewModel() }
) {
    DocumentFormScreen(
        residenceId = residenceId,
        existingDocumentId = null,
        initialDocumentType = initialDocumentType,
        onNavigateBack = onNavigateBack,
        onSuccess = onDocumentCreated,
        documentViewModel = documentViewModel,
        residenceViewModel = residenceViewModel
    )
}
