@esvndev/es-react-template-chat 0.0.12 → 0.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -4,6 +4,7 @@ import { createContext, useContext, useState, useEffect, useCallback, useLayoutE
4
4
  import '@styles/base/pages/app-chat.scss';
5
5
  import '@styles/base/pages/app-chat-list.scss';
6
6
  import 'react-dom';
7
+ import { useAppSelector } from '@src/redux/configureStore';
7
8
 
8
9
  var isBlazorPlatform = false;
9
10
  /**
@@ -20445,24 +20446,24 @@ var dayjs_min = {exports: {}};
20445
20446
  }(vi));
20446
20447
 
20447
20448
  const AppChat = () => {
20448
- //const {
20449
- //active,
20450
- //contactId,
20451
- //typeChat,
20452
- //chatRoomId,
20453
- //messageByGroup,
20454
- //listHistory,
20455
- //checkInit,
20456
- //setScroll,
20457
- //getHistoryApi,
20458
- //getProfileApi,
20459
- //getInfoApi,
20460
- //getContactApi,
20461
- //senMessageApi
20462
- //} = useChat()
20463
20449
  // const {
20464
- // connection
20465
- // } = useAppSelector((state: any) => state.hubNotification)
20450
+ // active,
20451
+ // // contactId,
20452
+ // // typeChat,
20453
+ // // chatRoomId,
20454
+ // // messageByGroup,
20455
+ // // listHistory,
20456
+ // // checkInit,
20457
+ // // setScroll,
20458
+ // // getHistoryApi,
20459
+ // // getProfileApi,
20460
+ // // getInfoApi,
20461
+ // // getContactApi,
20462
+ // // senMessageApi
20463
+ // } = useChat()
20464
+ const { connection } = useAppSelector((state) => state.hubNotification);
20465
+ //console.log('active', active)
20466
+ console.log('connection', connection);
20466
20467
  // const getWindowSize = () => {
20467
20468
  // const {innerWidth, innerHeight} = window
20468
20469
  // return {innerWidth, innerHeight}