1234567891011121314151617 |
- import { createAction } from '@reduxjs/toolkit';
- import { IChatsRes } from '../../../typescript/redux/chats/interfaces'
- import { TChat } from '../../../typescript/redux/chats/types'
- const actionGetChatsSuccess = createAction('getChats/success', (value:IChatsRes) => ({
- payload: value,
- }));
- const actionGetChatsReject = createAction('getChats/reject', () => ({
- payload: null,
- }));
- export {
- actionGetChatsSuccess,
- actionGetChatsReject,
- };
|