index.ts 481 B

1234567891011121314151617181920
  1. import { createAction } from '@reduxjs/toolkit';
  2. import { TChat } from '../../../typescript/redux/chat/types'
  3. const actionSelectChat = createAction('selectChat/success', (value:TChat) => ({
  4. payload: value,
  5. }));
  6. const actionGetChatById = createAction('getChatById/success', (value:TChat) => ({
  7. payload: value,
  8. }));
  9. const actionRemoveChat = createAction('deleteChat/success', () => ({
  10. payload:{}
  11. }));
  12. export {
  13. actionSelectChat,
  14. actionGetChatById,
  15. actionRemoveChat
  16. };