package com.remax.visualnovel.ui.main.history

import android.os.Bundle
import androidx.fragment.app.viewModels
import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.launcher.ARouter
import com.dylanc.loadingstateview.BgColorType
import com.remax.visualnovel.app.base.BaseBindingFragment
import com.remax.visualnovel.databinding.FragmentMainHistoryBinding
import com.remax.visualnovel.utils.Routers
import dagger.hilt.android.AndroidEntryPoint
import kotlin.getValue



@AndroidEntryPoint
@Route(path = Routers.ROUTE_FRAG_HISTORY)
class HistoryFragment : BaseBindingFragment<FragmentMainHistoryBinding>() {

    private val contactViewModel by viewModels<HistoryViewModel>()

    override fun onCreated(bundle: Bundle?) {
        setUI()
    }

    override fun backgroundColorType(): BgColorType {
        return BgColorType.TRANSPARENT
    }

    private fun setUI() {
        with(binding) {

        }
    }

    companion object {
        fun newInstance(): HistoryFragment {
            return ARouter.getInstance().build(Routers.ROUTE_FRAG_HISTORY)
                .navigation() as HistoryFragment
        }
    }

}