redux-modal
Version:
Redux based modal
28 lines (27 loc) • 518 B
JavaScript
import { SHOW, HIDE, DESTROY } from './actionTypes';
export function show(modal, props) {
if (props === void 0) { props = {}; }
return {
type: SHOW,
payload: {
modal: modal,
props: props,
},
};
}
export function hide(modal) {
return {
type: HIDE,
payload: {
modal: modal,
},
};
}
export function destroy(modal) {
return {
type: DESTROY,
payload: {
modal: modal,
},
};
}