import * as types from '../const' export const setStars = (userId: string, value: number) => ({ type: types.SET_STARS, payload: { id: userId, value, }, }) export const incrementStart = (userId: string) => ({ type: types.INCREMENT_STARS, payload: { id: userId } }) export const decrementStart = (userId: string) => ({ type: types.INCREMENT_STARS, payload: { id: userId } })