app.js 328 B

1234567891011121314151617181920212223
  1. export const INCREMENT = "INCREMENT";
  2. export const BAN = "BAN";
  3. export const AUTHENTICATE = "AUTHENTICATE";
  4. export function increment() {
  5. return {
  6. type: INCREMENT,
  7. };
  8. }
  9. export function ban(reason) {
  10. return {
  11. type: BAN,
  12. reason,
  13. };
  14. }
  15. export function authenticate(data) {
  16. return {
  17. type: AUTHENTICATE,
  18. data,
  19. };
  20. }