package com.tt.honeyDue.ui.screens

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

@Composable
fun AddResidenceScreen(
    onNavigateBack: () -> Unit,
    onResidenceCreated: () -> Unit,
    viewModel: ResidenceViewModel = viewModel { ResidenceViewModel() }
) {
    ResidenceFormScreen(
        existingResidence = null,
        onNavigateBack = onNavigateBack,
        onSuccess = onResidenceCreated,
        viewModel = viewModel
    )
}
