Ctrl K
ComunidadGuías…

utils/snackbar.ts

Rama main · réplica de lectura del repositorio original.

Archivo original ↗Preguntar a KiBot
import { showInfo, showError } from '~/composables/useToast';

// Legacy wrappers kept for backward compatibility.
// The `elm` parameter (modal-scoped positioning) is intentionally ignored —
// the global toast positioned bottom-right is visible in all contexts.
function showInfoSnackbar(message: string, _elm?: HTMLElement) {
  showInfo(message);
}

function showErrorSnackbar(message: string, _elm?: HTMLElement) {
  showError(message);
}

export {
  showInfoSnackbar,
  showErrorSnackbar,
};