bigbuffet-rw/app/soapbox/actions/snackbar.js
2021-08-03 14:22:51 -05:00

25 lines
384 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,
};