require('toastify-js/src/toastify.css');
import Toastify from 'toastify-js';

export function showErrorNotification(text: string): void {
  showNotification(text, false);
}

export function showNotification(text: string, status = true): void {
  Toastify({
    text: text,
    style: {
      color: status ? 'rgb(var(--success-text))' :  'rgb(var(--danger-text))',
      background: status ? 'var(--success)' : 'var(--danger)' 
    }
  }).showToast();
}
import Toastify from 'toastify-js';

export function showErrorNotification(text: string): void {
  showNotification(text, false);
}

export function showNotification(text: string, status = true): void {
  Toastify({
    text: text,
    style: {
      color: status ? 'rgb(var(--success-text))' :  'rgb(var(--danger-text))',
      background: status ? 'var(--success)' : 'var(--danger)' 
    }
  }).showToast();
}
Include toastify styles from SCSS
Include toastify styles from SCSS
