index.ts 449 B

1234567891011121314151617
  1. import { createAction } from '@reduxjs/toolkit';
  2. import { IChatsRes } from '../../../typescript/redux/chats/interfaces'
  3. import { TChat } from '../../../typescript/redux/chats/types'
  4. const actionGetChatsSuccess = createAction('getChats/success', (value:IChatsRes) => ({
  5. payload: value,
  6. }));
  7. const actionGetChatsReject = createAction('getChats/reject', () => ({
  8. payload: null,
  9. }));
  10. export {
  11. actionGetChatsSuccess,
  12. actionGetChatsReject,
  13. };