import { Action } from 'typescript-fsa' ; import { Dispatch } from 'redux' ; import { AppConfig , ConfirmDialogProps , AppState } from '../types' ; import { AppEventsActions as AppEventsActions_ , appEventsActions } from '../actions/AppEventsActions' ; import { KanbanBoardActions as KanbanBoardActions_ , kanbanBoardActions } from '../actions/KanbanBoardActions' ; export type AppEventsActions = AppEventsActions_ ; export type KanbanBoardActions = KanbanBoardActions_ ; export function mapDispatchToProps ( dispatch ) { return { showAlertDialog : ( v ) => dispatch ( appEventsActions . showAlertDialog ( v ) ) , closeAlertDialog : ( ) => dispatch ( appEventsActions . closeAlertDialog ( ) ) , updateAppConfig : ( v ) => dispatch ( appEventsActions . startUpdateAppConfig ( v ) ) , resetApplication : ( ) => dispatch ( appEventsActions . startResetApplication ( ) ) , changeActiveBoard : ( boardId ) => dispatch ( kanbanBoardActions . startChangeActiveBoard ( { boardId } ) ) , refreshActiveBoard : ( ) => dispatch ( kanbanBoardActions . startRefreshActiveBoard ( { } ) ) , } ; } export function mapStateToProps ( appState ) { return Object . assign ( { } , appState . appEvents ) ; }