Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function clearAll() {
return createActionHelper(CLEAR_ALL)();
}
export function destroy(id) {
return createActionHelper(DESTROY)({
id
});
}
export function setCounter(counterId, value) {
return createActionHelper(SET_COUNTER)({
counterId,
value
});
}
export function add(
id,
{ text, icon, image, title, date, close, delay }
) {
return createActionHelper(ADD)({
id,
text,
icon,
image,
title,
date,
close,
delay
});
}