package com.lukouguoji.module_base.ktx

import android.app.Activity
import com.lukouguoji.module_base.model.ConfirmDialogModel
import com.lxj.xpopup.XPopup

fun Activity.showConfirmDialog(
    message: String,
    title: String = "",
    confirmText: String = "确认",
    cancelText: String = "取消",
    cancelListener: () -> Unit = {},
    confirmListener: () -> Unit
) {
    ConfirmDialogModel(
        message = message,
        title = title,
        confirmText = confirmText,
        cancelText = cancelText,
        cancelListener = cancelListener,
        confirmListener = confirmListener
    ).show(this)
}
