package com.tt.honeyDue.ui.screens

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

@Composable
fun EditResidenceScreen(
    residence: Residence,
    onNavigateBack: () -> Unit,
    onResidenceUpdated: () -> Unit,
    viewModel: ResidenceViewModel = viewModel { ResidenceViewModel() }
) {
    ResidenceFormScreen(
        existingResidence = residence,
        onNavigateBack = onNavigateBack,
        onSuccess = onResidenceUpdated,
        viewModel = viewModel
    )
}
