relayers-network-ui/plugins/vue-notification.ts

13 lines
286 B
TypeScript

import Vue from 'vue'
import Notifications, { NotificationOptions } from 'vue-notification'
import { Inject } from '@/types'
Vue.use(Notifications, {
closeOnClick: false,
})
export default (_: never, inject: Inject<NotificationOptions>) => {
inject('notification', Vue.notify)
}