Files
CreatBotMainsail/src/store/gui/notifications/index.ts
Stefan Dej d830493acc feat: notifications (#738)
Co-authored-by: th33xitus <th33xitus@googlemail.com>
2022-04-10 23:20:19 +02:00

23 lines
486 B
TypeScript

import { GuiNotificationState } from './types'
import { Module } from 'vuex'
import { actions } from './actions'
import { mutations } from './mutations'
import { getters } from './getters'
export const getDefaultState = (): GuiNotificationState => {
return {
dismiss: [],
}
}
// initial state
const state = getDefaultState()
export const notifications: Module<GuiNotificationState, any> = {
namespaced: true,
state,
getters,
actions,
mutations,
}