package com.sambath.sbc.screen.main.cflive.currentbets

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

class CurrentBetsAdapter  : BaseListAdapter() {
    var printButtonListener: ((String, String, String, String, String, String, String) -> Unit) ?= null
    override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): RecyclerView.ViewHolder = CurrentBetsListViewHolder(
        LayoutInflater.from(parent.context).inflate(
            R.layout.current_bets_item,
            parent,
            false
        ) , printButtonListener
    )
}