import Action , { ThunkAction } from './type' ; import { MessageKind } from '../reducers/message' ; export function showMessage ( text , msg_kind ) { return dispatch => { window . requestIdleCallback ( ( ) => dispatch ( { type : 'ShowMessage' , text , msg_kind , } ) ) ; } ; } export function dismissMessage ( ) { return { type : 'DismissMessage' , } ; } export function notImplementedYet ( ) { return dispatch => { window . requestIdleCallback ( ( ) => dispatch ( { type : 'NotImplementedYet' , } ) ) ; } ; }