bigbuffet-rw/app/soapbox/actions/snackbar.js
2020-09-28 18:43:17 -05:00

25 lines
387 B
JavaScript

import { ALERT_SHOW } from './alerts';
const show = (severity, message) => ({
type: ALERT_SHOW,
message,
severity,
});
export function info(message) {
return show('info', message);
};
export function success(message) {
return show('success', message);
};
export function error(message) {
return show('error', message);
};
export default {
info,
success,
error,
};