import {QVueGlobals} from "quasar";

export const sleep = (ms: number) => new Promise((r) => setTimeout(r, ms));

export function showApiErrorToast(i18n: any, quasar: QVueGlobals) {
  quasar.notify({
    message: i18n.t('generalErrors.apiError'),
    type: 'danger',
    position: 'top'
  });
}
