Primakov Alexandr Alexandrovich 2d2ed497ca init redux
2025-01-15 09:24:56 +03:00

24 lines
410 B
TypeScript

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
}
})