@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.js CHANGED
@@ -7,6 +7,7 @@ var React = require('react');
7
7
  require('@styles/base/pages/app-chat.scss');
8
8
  require('@styles/base/pages/app-chat-list.scss');
9
9
  require('react-dom');
10
+ var configureStore = require('@src/redux/configureStore');
10
11
 
11
12
  function _interopNamespace(e) {
12
13
  if (e && e.__esModule) return e;
@@ -20468,24 +20469,24 @@ var dayjs_min = {exports: {}};
20468
20469
  }(vi));
20469
20470
 
20470
20471
  const AppChat = () => {
20471
- //const {
20472
- //active,
20473
- //contactId,
20474
- //typeChat,
20475
- //chatRoomId,
20476
- //messageByGroup,
20477
- //listHistory,
20478
- //checkInit,
20479
- //setScroll,
20480
- //getHistoryApi,
20481
- //getProfileApi,
20482
- //getInfoApi,
20483
- //getContactApi,
20484
- //senMessageApi
20485
- //} = useChat()
20486
20472
  // const {
20487
- // connection
20488
- // } = useAppSelector((state: any) => state.hubNotification)
20473
+ // active,
20474
+ // // contactId,
20475
+ // // typeChat,
20476
+ // // chatRoomId,
20477
+ // // messageByGroup,
20478
+ // // listHistory,
20479
+ // // checkInit,
20480
+ // // setScroll,
20481
+ // // getHistoryApi,
20482
+ // // getProfileApi,
20483
+ // // getInfoApi,
20484
+ // // getContactApi,
20485
+ // // senMessageApi
20486
+ // } = useChat()
20487
+ const { connection } = configureStore.useAppSelector((state) => state.hubNotification);
20488
+ //console.log('active', active)
20489
+ console.log('connection', connection);
20489
20490
  // const getWindowSize = () => {
20490
20491
  // const {innerWidth, innerHeight} = window
20491
20492
  // return {innerWidth, innerHeight}