[ABANDONED] React/Redux front end for the Flexor social network.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

36 lines
632 B

import { Action } from 'redux'
export interface SetAutoAction extends Action {
type: 'NOTIFICATIONS_SET_AUTO'
payload: {
id: string
}
}
export interface DismissAction extends Action {
type: 'NOTIFICATIONS_DISMISS'
payload: {
id: string
}
}
export type NotificationActions = SetAutoAction | DismissAction
const setAuto = (id: string): SetAutoAction => ({
type: 'NOTIFICATIONS_SET_AUTO',
payload: {
id,
},
})
const dismiss = (id: string): DismissAction => ({
type: 'NOTIFICATIONS_DISMISS',
payload: {
id,
},
})
export {
setAuto,
dismiss,
}