Files
talk/plugins/talk-plugin-moderation-actions/client/actions.js
T
2017-09-18 10:04:39 -03:00

21 lines
393 B
JavaScript

import {OPEN_MENU, CLOSE_MENU, OPEN_BAN_DIALOG, CLOSE_BAN_DIALOG} from './constants';
export const openMenu = (id) => ({
type: OPEN_MENU,
id,
});
export const closeMenu = () => ({
type: CLOSE_MENU,
});
export const openBanDialog = ({commentId, authorId}) => ({
type: OPEN_BAN_DIALOG,
commentId,
authorId
});
export const closeBanDialog = () => ({
type: CLOSE_BAN_DIALOG,
});