闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
411 B

  1. export const ALERT_SHOW = 'ALERT_SHOW';
  2. export const ALERT_DISMISS = 'ALERT_DISMISS';
  3. export const ALERT_CLEAR = 'ALERT_CLEAR';
  4. export function dismissAlert(alert) {
  5. return {
  6. type: ALERT_DISMISS,
  7. alert,
  8. };
  9. };
  10. export function clearAlert() {
  11. return {
  12. type: ALERT_CLEAR,
  13. };
  14. };
  15. export function showAlert(title, message) {
  16. return {
  17. type: ALERT_SHOW,
  18. title,
  19. message,
  20. };
  21. };