text: import { CLOSE_DIALOG, OPEN_DIALOG, SET_DIALOG_ERROR } from '../constants';
  import { store } from '../store';
  export const dialogsActions = {
      openDialog: (dialogName, data) => {
          store.dispatch({
              type: OPEN_DIALOG,
              dialog: {
                  [dialogName]: {
                      isOpened: true,
                      data,
                  },
              },
          });
      },
      closeDialog: (dialogName) => {
          store.dispatch({
              type: CLOSE_DIALOG,
              dialogName,
          });
      },
      setDialogError: (dialogName) => ({
          type: SET_DIALOG_ERROR,
          payload: { dialogName },
      }),
  };
  //# sourceMappingURL=dialogs.js.map