bigbuffet-rw/app/soapbox/actions/snackbar.js
2021-10-19 12:29:54 -05:00

26 lines
399 B
JavaScript

import { ALERT_SHOW } from './alerts';
export 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,
show,
};