1234567891011121314151617181920212223242526272829303132 |
- import {
- HIDE_DIALOG,
- OPEN_DIALOG
- } from './actionTypes';
-
- /**
- * Signals Dialog to close its dialog.
- *
- * @returns {{
- * type: HIDE_DIALOG
- * }}
- */
- export function hideDialog() {
- return {
- type: HIDE_DIALOG
- };
- }
-
- /**
- * Signals Dialog to open dialog.
- *
- * @param {Object} component - The component to display as dialog.
- * @param {Object} componentProps - The properties needed for that component.
- * @returns {Object}
- */
- export function openDialog(component, componentProps) {
- return {
- type: OPEN_DIALOG,
- component,
- componentProps
- };
- }
|