package com.tt.honeyDue.ui.screens

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

@Composable
fun EditDocumentScreen(
    documentId: Int,
    onNavigateBack: () -> Unit,
    documentViewModel: DocumentViewModel = viewModel { DocumentViewModel() }
) {
    DocumentFormScreen(
        residenceId = null,
        existingDocumentId = documentId,
        initialDocumentType = "other",
        onNavigateBack = onNavigateBack,
        onSuccess = onNavigateBack,
        documentViewModel = documentViewModel
    )
}
