import { Notify } from 'quasar';

/**
 * show information about error.
 * @param message
 * @param icon
 * @param color
 */

export function notifyError(
  message: string,
  icon = 'error',
  color = 'negative'
): void {
  Notify.create({
    color,
    icon,
    message,
  });
}

export function notifySuccess(
  message: string,
  icon = 'check',
  color = 'green-2',
  textColor = 'green-10'
): void {
  Notify.create({
    color,
    textColor,
    icon,
    message,
  });
}

export function notifyInfo(
  message: string,
  icon = 'error',
  color = 'info'
): void {
  Notify.create({
    color,
    icon,
    message,
  });
}
