


export const alertConfirmationDelete = (title,type="primary") => {
    return   Swal.fire({
        title: '¿Está seguro?',
        text: "Esta acción es irreversible.",
        icon: 'warning',
        showCancelButton: true,
        confirmButtonColor: '#3085d6',
        cancelButtonColor: '#d33',
        confirmButtonText: 'Sí',
        cancelButtonText: 'Cancelar',
        customClass: {
          confirmButton: 'btn btn-danger me-1',
          cancelButton: 'btn btn-label-secondary'
        },
        buttonsStyling: false
      })
}

export const alertSuccessMessage = (title,type="primary") => {
  return   Swal.fire({
    showCancelButton: false,
    showConfirmButton : false,
    title: title,
    text: title,
    icon: "success",
    timer : 2000
  })
}

export const alertWarningMessage = (title,message,type="primary") => {
  return   Swal.fire({
    title: title,
    text: message,
    icon: "warning",
    customClass: {
      confirmButton: 'btn btn-primary'
    },
    buttonsStyling: false
  })
}