import { ModalPayload } from '@devhub/core' ; import { createAction } from '../helpers' ; export function pushModal ( payload ) { return createAction ( 'PUSH_MODAL' , payload ) ; } export function replaceModal ( payload ) { return createAction ( 'REPLACE_MODAL' , payload ) ; } export function popModal ( ) { return createAction ( 'POP_MODAL' ) ; } export function closeAllModals ( ) { return createAction ( 'CLOSE_ALL_MODALS' ) ; }