package com.khmer9.yuki.screen.detail

import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.gdtlib.lib.adapter.BaseListAdapter
import com.khmer9.yuki.R

class BetsDetailAdapter : BaseListAdapter() {
    var printButtonListener: ((String, String, String, String, String, String, String) -> Unit)? = null

    override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): RecyclerView.ViewHolder = BetsDetailListViewHolder(
        LayoutInflater.from(parent.context).inflate(
            R.layout.bet_detail_item,
            parent,
            false
        ), printButtonListener
    )
}
