package com.adealink.weparty.wallet.comp

import androidx.lifecycle.LifecycleOwner
import com.adealink.frame.mvvm.view.ViewComponent
import com.adealink.frame.mvvm.viewmodel.activityViewModels
import com.adealink.weparty.wallet.databinding.LayoutWalletIncomeBinding
import com.adealink.weparty.wallet.viewmodel.WalletViewModel
import com.adealink.weparty.wallet.viewmodel.WalletViewModelFactory

class MyIncomeComp(
    lifecycleOwner: LifecycleOwner,
    val binding: LayoutWalletIncomeBinding
) : ViewComponent(lifecycleOwner) {

    private val viewModel by activityViewModels<WalletViewModel> { WalletViewModelFactory() }

    override fun onCreate() {
        super.onCreate()
        initView()
        observeViewModel()
        loadData()
    }

    private fun initView() {

    }

    private fun observeViewModel() {

    }

    private fun loadData() {

    }

}