Devendra174's picture
Upload folder using huggingface_hub
f5071ca verified
raw
history blame contribute delete
314 Bytes
import * as ApiUtil from '../util/comment_api_util';
export const RECEIVE_COMMENT = 'RECEIVE_COMMENT';
const receiveComment = comment => ({
type: RECEIVE_COMMENT,
comment
});
export const createComment = comment => dispatch => (
ApiUtil.createComment(comment).then(res => dispatch(receiveComment(res)))
);