import { Notify } from 'quasar'; import { i18n } from 'src/boot/i18n'; export default function useNotify() { const notify = (message, type, icon, opts = {}) => { const defaultIcons = { warning: 'warning', negative: 'error', positive: 'check', }; Notify.create({ message: i18n.global.t(message), type: type, icon: icon ? icon : defaultIcons[type], ...opts, }); }; return { notify, }; }