Files
talk/plugins/talk-plugin-featured-comments/client/actions.js
T
2018-01-11 20:00:34 -07:00

17 lines
343 B
JavaScript

import { OPEN_FEATURED_DIALOG, CLOSE_FEATURED_DIALOG } from './constants';
export const openFeaturedDialog = (comment, asset) => ({
type: OPEN_FEATURED_DIALOG,
comment: {
id: comment.id,
tags: comment.tags,
},
asset: {
id: asset.id,
},
});
export const closeFeaturedDialog = () => ({
type: CLOSE_FEATURED_DIALOG,
});