index.ts 418 B

12345678910111213141516
  1. import { createAction } from '@reduxjs/toolkit';
  2. import { IMessagesState } from '../../../typescript/redux/messages/interfaces'
  3. const actionGetMessagesSuccess = createAction('getMessages/success', (value:IMessagesState) => ({
  4. payload: value,
  5. }));
  6. const actionGetMessagesReject = createAction('getMessages/reject', () => ({
  7. payload: null,
  8. }));
  9. export {
  10. actionGetMessagesSuccess,
  11. actionGetMessagesReject,
  12. };