@daeryun/dr_components 0.7.94 → 0.7.96
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/components/Daeryuntalk/ChatButton.jsx +1 -1
- package/dist/components/Daeryuntalk/ChatButton.tsx +1 -1
- package/dist/components/Daeryuntalk/ChatConversation.jsx +1 -0
- package/dist/components/Daeryuntalk/ChatConversation.tsx +1 -0
- package/dist/components/Daeryuntalk/ChatHomeView.jsx +14 -5
- package/dist/components/Daeryuntalk/ChatHomeView.tsx +19 -6
- package/dist/components/Daeryuntalk/ChatItem/ChatFile.jsx +3 -3
- package/dist/components/Daeryuntalk/ChatItem/ChatFile.tsx +6 -3
- package/dist/components/Daeryuntalk/ChatWidget.jsx +21 -9
- package/dist/components/Daeryuntalk/ChatWidget.tsx +23 -10
- package/dist/components/Daeryuntalk/DaeryuntalkContext.jsx +1 -1
- package/dist/components/Daeryuntalk/DaeryuntalkContext.tsx +0 -1
- package/dist/components/Daeryuntalk/History/AuthForm.jsx +2 -2
- package/dist/components/Daeryuntalk/History/AuthForm.tsx +2 -4
- package/dist/components/Daeryuntalk/Toast/DaeryuntalkToastProvider.d.ts +17 -7
- package/dist/components/Daeryuntalk/Toast/DaeryuntalkToastProvider.jsx +14 -18
- package/dist/components/Daeryuntalk/Toast/DaeryuntalkToastProvider.tsx +25 -38
- package/dist/components/Daeryuntalk/Toast/ToastRender.d.ts +1 -0
- package/dist/components/Daeryuntalk/Toast/ToastRender.jsx +17 -0
- package/dist/components/Daeryuntalk/Toast/ToastRender.tsx +27 -0
- package/dist/components/Daeryuntalk/_hooks/talkprovider/useChatHandler.d.ts +0 -6
- package/dist/components/Daeryuntalk/_hooks/talkprovider/useChatHandler.js +31 -22
- package/dist/components/Daeryuntalk/_hooks/talkprovider/useChatHandler.ts +27 -30
- package/dist/components/Daeryuntalk/_hooks/useScrollShadow.d.ts +6 -0
- package/dist/components/Daeryuntalk/_hooks/useScrollShadow.js +27 -0
- package/dist/components/Daeryuntalk/_hooks/useScrollShadow.ts +34 -0
- package/dist/components/Daeryuntalk/_ui/ShadowBox.d.ts +3 -0
- package/dist/components/Daeryuntalk/_ui/ShadowBox.jsx +5 -0
- package/dist/components/Daeryuntalk/_ui/ShadowBox.tsx +9 -0
- package/dist/components/Daeryuntalk/index.jsx +7 -4
- package/dist/components/Daeryuntalk/index.tsx +8 -4
- package/dist/styles/globals.css +255 -4
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -8,9 +8,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { useCallback } from 'react';
|
|
11
|
-
import { chatUserUpdate as apiChatUserUpdate, chatWorkFlow, chatWorkFlowBack, generateChatInquiry, getChatInquiryDetailNew, getChatInquiryMessageList,
|
|
11
|
+
import { chatUserUpdate as apiChatUserUpdate, chatWorkFlow, chatWorkFlowBack, generateChatInquiry, getChatInquiryDetailNew, getChatInquiryMessageList, sendChatMessage } from '../../_api';
|
|
12
12
|
import { convertApiMessageObjectToUiMessageObject, convertApiMessageToUiMessage } from '../../_lib';
|
|
13
|
+
import { useDaeryunTalkToast } from '../../Toast/DaeryuntalkToastProvider';
|
|
13
14
|
export const useChatHandler = ({ setIsLoading, inquiryMainData, setChatInquiryNumber, setMessages, setInquiryStatus, setMessageObject, chatInquiryNumber, setIsNextPage, setWorkFlowStack, setInquiryMainData }) => {
|
|
15
|
+
const toast = useDaeryunTalkToast();
|
|
14
16
|
// 채팅 시작 (문의하기 버튼 클릭 시)
|
|
15
17
|
const startChat = useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
16
18
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
@@ -94,6 +96,7 @@ export const useChatHandler = ({ setIsLoading, inquiryMainData, setChatInquiryNu
|
|
|
94
96
|
return currentChatInquiryNumber;
|
|
95
97
|
}
|
|
96
98
|
catch (error) {
|
|
99
|
+
toast.error('문의 시작에 실패했습니다.');
|
|
97
100
|
console.error('[DaeryuntalkContext] 채팅 시작 오류:', error);
|
|
98
101
|
throw error;
|
|
99
102
|
}
|
|
@@ -166,6 +169,7 @@ export const useChatHandler = ({ setIsLoading, inquiryMainData, setChatInquiryNu
|
|
|
166
169
|
return chatInquiryNumber;
|
|
167
170
|
}
|
|
168
171
|
catch (error) {
|
|
172
|
+
toast.error('채팅 시작에 실패했습니다.');
|
|
169
173
|
console.error('[DaeryuntalkContext] 채팅 시작 오류:', error);
|
|
170
174
|
throw error;
|
|
171
175
|
}
|
|
@@ -181,6 +185,7 @@ export const useChatHandler = ({ setIsLoading, inquiryMainData, setChatInquiryNu
|
|
|
181
185
|
yield sendChatMessage(chatInquiryNumber, htmlContent, jsonData);
|
|
182
186
|
}
|
|
183
187
|
catch (error) {
|
|
188
|
+
toast.error('메시지 전송에 실패했습니다.');
|
|
184
189
|
console.error('[DaeryuntalkContext] 메시지 전송 중 오류 발생:', error);
|
|
185
190
|
}
|
|
186
191
|
finally {
|
|
@@ -248,6 +253,7 @@ export const useChatHandler = ({ setIsLoading, inquiryMainData, setChatInquiryNu
|
|
|
248
253
|
}
|
|
249
254
|
}
|
|
250
255
|
catch (error) {
|
|
256
|
+
toast.error('채팅 문의 생성에 실패했습니다.');
|
|
251
257
|
console.error('[DaeryuntalkContext] 신규 채팅문의 생성:', error);
|
|
252
258
|
}
|
|
253
259
|
finally {
|
|
@@ -273,6 +279,7 @@ export const useChatHandler = ({ setIsLoading, inquiryMainData, setChatInquiryNu
|
|
|
273
279
|
yield chatWorkFlow(chatInquiryNumber, messageNumber, workFlowNumber, objectNumber);
|
|
274
280
|
}
|
|
275
281
|
catch (error) {
|
|
282
|
+
toast.error('워크플로우 생성에 실패했습니다.');
|
|
276
283
|
console.error('[워크 플로우 생성 실패]:', error);
|
|
277
284
|
}
|
|
278
285
|
finally {
|
|
@@ -295,6 +302,7 @@ export const useChatHandler = ({ setIsLoading, inquiryMainData, setChatInquiryNu
|
|
|
295
302
|
yield chatWorkFlowBack(chatInquiryNumber, messageNumber, workFlowNavigationCode);
|
|
296
303
|
}
|
|
297
304
|
catch (error) {
|
|
305
|
+
toast.error('동작에 실패했습니다.');
|
|
298
306
|
console.error('[워크 플로우 생성 실패]:', error);
|
|
299
307
|
}
|
|
300
308
|
finally {
|
|
@@ -320,6 +328,7 @@ export const useChatHandler = ({ setIsLoading, inquiryMainData, setChatInquiryNu
|
|
|
320
328
|
yield apiChatUserUpdate(chatInquiryNumber, messageNumber, name, cellPhoneNumber);
|
|
321
329
|
}
|
|
322
330
|
catch (error) {
|
|
331
|
+
toast.error('개인정보 업데이트에 실패했습니다.');
|
|
323
332
|
console.error('[워크 플로우 생성 실패]:', error);
|
|
324
333
|
}
|
|
325
334
|
finally {
|
|
@@ -328,27 +337,28 @@ export const useChatHandler = ({ setIsLoading, inquiryMainData, setChatInquiryNu
|
|
|
328
337
|
}), []);
|
|
329
338
|
const getNextMessageList = useCallback((chatInquiryNumber, standardDateTime) => __awaiter(void 0, void 0, void 0, function* () {
|
|
330
339
|
const chatList = yield getChatInquiryMessageList(chatInquiryNumber, standardDateTime);
|
|
331
|
-
if (chatList.
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
340
|
+
if (chatList.result_info.result_cd === 'OK' || chatList.result_info.result_type_cd === 'OK') {
|
|
341
|
+
if (chatList.data) {
|
|
342
|
+
// 앞에 생성될 여기서는 앞에서부터 채워야함
|
|
343
|
+
const newMessageList = chatList.data.message_list
|
|
344
|
+
.sort((a, b) => a.timestamp - b.timestamp)
|
|
345
|
+
.map(item => {
|
|
346
|
+
return convertApiMessageToUiMessage(item);
|
|
347
|
+
});
|
|
348
|
+
setIsNextPage(chatList.data.next_page_yn);
|
|
349
|
+
setMessages(prev => {
|
|
350
|
+
if (newMessageList && newMessageList.length > 0) {
|
|
351
|
+
return [...newMessageList, ...prev];
|
|
352
|
+
}
|
|
353
|
+
else {
|
|
354
|
+
return [...prev];
|
|
355
|
+
}
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
else {
|
|
360
|
+
toast.error('메세지 조회에 실패했습니다.');
|
|
347
361
|
}
|
|
348
|
-
}), []);
|
|
349
|
-
// 파일 다운로드 url
|
|
350
|
-
const getDownLoadUrl = useCallback((_a) => __awaiter(void 0, [_a], void 0, function* ({ chatInquiryNumber, fileNumber }) {
|
|
351
|
-
return yield getMessageFileDownloadUrl({ chatInquiryNumber, fileNumber });
|
|
352
362
|
}), []);
|
|
353
363
|
return {
|
|
354
364
|
startChat,
|
|
@@ -358,7 +368,6 @@ export const useChatHandler = ({ setIsLoading, inquiryMainData, setChatInquiryNu
|
|
|
358
368
|
workFlowBack,
|
|
359
369
|
chatUserUpdate,
|
|
360
370
|
getNextMessageList,
|
|
361
|
-
getDownLoadUrl,
|
|
362
371
|
startSelectedChat
|
|
363
372
|
};
|
|
364
373
|
};
|
|
@@ -13,7 +13,7 @@ import { convertApiMessageObjectToUiMessageObject, convertApiMessageToUiMessage
|
|
|
13
13
|
import { IChatInquiryMainDataResponse } from '../../_api/daeryuntalk/type/response';
|
|
14
14
|
import { Message } from '../../_types/message';
|
|
15
15
|
import { MessageObject } from '../../_types/message_object';
|
|
16
|
-
|
|
16
|
+
import { useDaeryunTalkToast } from '../../Toast/DaeryuntalkToastProvider';
|
|
17
17
|
interface props {
|
|
18
18
|
setIsLoading: Dispatch<SetStateAction<boolean>>;
|
|
19
19
|
inquiryMainData: IChatInquiryMainDataResponse | null;
|
|
@@ -39,6 +39,7 @@ export const useChatHandler = ({
|
|
|
39
39
|
setWorkFlowStack,
|
|
40
40
|
setInquiryMainData
|
|
41
41
|
}: props) => {
|
|
42
|
+
const toast = useDaeryunTalkToast();
|
|
42
43
|
// 채팅 시작 (문의하기 버튼 클릭 시)
|
|
43
44
|
const startChat = useCallback(async () => {
|
|
44
45
|
try {
|
|
@@ -132,6 +133,7 @@ export const useChatHandler = ({
|
|
|
132
133
|
|
|
133
134
|
return currentChatInquiryNumber;
|
|
134
135
|
} catch (error) {
|
|
136
|
+
toast.error('문의 시작에 실패했습니다.');
|
|
135
137
|
console.error('[DaeryuntalkContext] 채팅 시작 오류:', error);
|
|
136
138
|
throw error;
|
|
137
139
|
} finally {
|
|
@@ -213,6 +215,7 @@ export const useChatHandler = ({
|
|
|
213
215
|
|
|
214
216
|
return chatInquiryNumber;
|
|
215
217
|
} catch (error) {
|
|
218
|
+
toast.error('채팅 시작에 실패했습니다.');
|
|
216
219
|
console.error('[DaeryuntalkContext] 채팅 시작 오류:', error);
|
|
217
220
|
throw error;
|
|
218
221
|
} finally {
|
|
@@ -230,6 +233,7 @@ export const useChatHandler = ({
|
|
|
230
233
|
console.log('chatInquiryNumber', chatInquiryNumber);
|
|
231
234
|
await sendChatMessage(chatInquiryNumber as string, htmlContent, jsonData);
|
|
232
235
|
} catch (error) {
|
|
236
|
+
toast.error('메시지 전송에 실패했습니다.');
|
|
233
237
|
console.error('[DaeryuntalkContext] 메시지 전송 중 오류 발생:', error);
|
|
234
238
|
} finally {
|
|
235
239
|
setIsLoading(false);
|
|
@@ -298,6 +302,7 @@ export const useChatHandler = ({
|
|
|
298
302
|
} else {
|
|
299
303
|
}
|
|
300
304
|
} catch (error) {
|
|
305
|
+
toast.error('채팅 문의 생성에 실패했습니다.');
|
|
301
306
|
console.error('[DaeryuntalkContext] 신규 채팅문의 생성:', error);
|
|
302
307
|
} finally {
|
|
303
308
|
setIsLoading(false);
|
|
@@ -330,6 +335,7 @@ export const useChatHandler = ({
|
|
|
330
335
|
try {
|
|
331
336
|
await chatWorkFlow(chatInquiryNumber, messageNumber, workFlowNumber, objectNumber);
|
|
332
337
|
} catch (error) {
|
|
338
|
+
toast.error('워크플로우 생성에 실패했습니다.');
|
|
333
339
|
console.error('[워크 플로우 생성 실패]:', error);
|
|
334
340
|
} finally {
|
|
335
341
|
setIsLoading(false);
|
|
@@ -354,6 +360,7 @@ export const useChatHandler = ({
|
|
|
354
360
|
try {
|
|
355
361
|
await chatWorkFlowBack(chatInquiryNumber, messageNumber, workFlowNavigationCode);
|
|
356
362
|
} catch (error) {
|
|
363
|
+
toast.error('동작에 실패했습니다.');
|
|
357
364
|
console.error('[워크 플로우 생성 실패]:', error);
|
|
358
365
|
} finally {
|
|
359
366
|
setIsLoading(false);
|
|
@@ -384,6 +391,7 @@ export const useChatHandler = ({
|
|
|
384
391
|
try {
|
|
385
392
|
await apiChatUserUpdate(chatInquiryNumber, messageNumber, name, cellPhoneNumber);
|
|
386
393
|
} catch (error) {
|
|
394
|
+
toast.error('개인정보 업데이트에 실패했습니다.');
|
|
387
395
|
console.error('[워크 플로우 생성 실패]:', error);
|
|
388
396
|
} finally {
|
|
389
397
|
setIsLoading(false);
|
|
@@ -394,38 +402,28 @@ export const useChatHandler = ({
|
|
|
394
402
|
|
|
395
403
|
const getNextMessageList = useCallback(async (chatInquiryNumber: string, standardDateTime: any) => {
|
|
396
404
|
const chatList = await getChatInquiryMessageList(chatInquiryNumber, standardDateTime);
|
|
397
|
-
if (chatList.
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
405
|
+
if (chatList.result_info.result_cd === 'OK' || chatList.result_info.result_type_cd === 'OK') {
|
|
406
|
+
if (chatList.data) {
|
|
407
|
+
// 앞에 생성될 여기서는 앞에서부터 채워야함
|
|
408
|
+
const newMessageList = chatList.data.message_list
|
|
409
|
+
.sort((a, b) => a.timestamp - b.timestamp)
|
|
410
|
+
.map(item => {
|
|
411
|
+
return convertApiMessageToUiMessage(item);
|
|
412
|
+
});
|
|
413
|
+
setIsNextPage(chatList.data.next_page_yn);
|
|
414
|
+
setMessages(prev => {
|
|
415
|
+
if (newMessageList && newMessageList.length > 0) {
|
|
416
|
+
return [...newMessageList, ...prev];
|
|
417
|
+
} else {
|
|
418
|
+
return [...prev];
|
|
419
|
+
}
|
|
403
420
|
});
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
return [...newMessageList, ...prev];
|
|
408
|
-
} else {
|
|
409
|
-
return [...prev];
|
|
410
|
-
}
|
|
411
|
-
});
|
|
421
|
+
}
|
|
422
|
+
} else {
|
|
423
|
+
toast.error('메세지 조회에 실패했습니다.');
|
|
412
424
|
}
|
|
413
425
|
}, []);
|
|
414
426
|
|
|
415
|
-
// 파일 다운로드 url
|
|
416
|
-
const getDownLoadUrl = useCallback(
|
|
417
|
-
async ({
|
|
418
|
-
chatInquiryNumber,
|
|
419
|
-
fileNumber
|
|
420
|
-
}: {
|
|
421
|
-
chatInquiryNumber: string; // required
|
|
422
|
-
fileNumber: string;
|
|
423
|
-
}) => {
|
|
424
|
-
return await getMessageFileDownloadUrl({ chatInquiryNumber, fileNumber });
|
|
425
|
-
},
|
|
426
|
-
[]
|
|
427
|
-
);
|
|
428
|
-
|
|
429
427
|
return {
|
|
430
428
|
startChat,
|
|
431
429
|
sendMessage,
|
|
@@ -434,7 +432,6 @@ export const useChatHandler = ({
|
|
|
434
432
|
workFlowBack,
|
|
435
433
|
chatUserUpdate,
|
|
436
434
|
getNextMessageList,
|
|
437
|
-
getDownLoadUrl,
|
|
438
435
|
startSelectedChat
|
|
439
436
|
};
|
|
440
437
|
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { useEffect, useRef, useState, useCallback } from 'react';
|
|
2
|
+
export function useScrollShadow() {
|
|
3
|
+
const containerRef = useRef(null);
|
|
4
|
+
const [isScroll, setIsScroll] = useState(false);
|
|
5
|
+
const [isBottom, setIsBottom] = useState(false);
|
|
6
|
+
const checkScroll = useCallback(() => {
|
|
7
|
+
const container = containerRef.current;
|
|
8
|
+
if (!container)
|
|
9
|
+
return;
|
|
10
|
+
const { scrollHeight, scrollTop, clientHeight } = container;
|
|
11
|
+
const scrollPercentage = (scrollTop + clientHeight) / scrollHeight;
|
|
12
|
+
setIsScroll(scrollHeight > clientHeight && scrollPercentage >= 0.9);
|
|
13
|
+
setIsBottom(scrollPercentage >= 0.95);
|
|
14
|
+
}, []);
|
|
15
|
+
useEffect(() => {
|
|
16
|
+
const container = containerRef.current;
|
|
17
|
+
if (!container)
|
|
18
|
+
return;
|
|
19
|
+
container.addEventListener('scroll', checkScroll);
|
|
20
|
+
// mount 시 초기 상태 확인
|
|
21
|
+
checkScroll();
|
|
22
|
+
return () => {
|
|
23
|
+
container.removeEventListener('scroll', checkScroll);
|
|
24
|
+
};
|
|
25
|
+
}, [checkScroll]);
|
|
26
|
+
return { containerRef, isScroll, isBottom, checkScroll };
|
|
27
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { useEffect, useRef, useState, useCallback } from 'react';
|
|
2
|
+
|
|
3
|
+
export function useScrollShadow<T extends HTMLElement>() {
|
|
4
|
+
const containerRef = useRef<T | null>(null);
|
|
5
|
+
const [isScroll, setIsScroll] = useState(false);
|
|
6
|
+
const [isBottom, setIsBottom] = useState(false);
|
|
7
|
+
|
|
8
|
+
const checkScroll = useCallback(() => {
|
|
9
|
+
const container = containerRef.current;
|
|
10
|
+
if (!container) return;
|
|
11
|
+
|
|
12
|
+
const { scrollHeight, scrollTop, clientHeight } = container;
|
|
13
|
+
const scrollPercentage = (scrollTop + clientHeight) / scrollHeight;
|
|
14
|
+
|
|
15
|
+
setIsScroll(scrollHeight > clientHeight && scrollPercentage >= 0.9);
|
|
16
|
+
setIsBottom(scrollPercentage >= 0.95);
|
|
17
|
+
}, []);
|
|
18
|
+
|
|
19
|
+
useEffect(() => {
|
|
20
|
+
const container = containerRef.current;
|
|
21
|
+
if (!container) return;
|
|
22
|
+
|
|
23
|
+
container.addEventListener('scroll', checkScroll);
|
|
24
|
+
|
|
25
|
+
// mount 시 초기 상태 확인
|
|
26
|
+
checkScroll();
|
|
27
|
+
|
|
28
|
+
return () => {
|
|
29
|
+
container.removeEventListener('scroll', checkScroll);
|
|
30
|
+
};
|
|
31
|
+
}, [checkScroll]);
|
|
32
|
+
|
|
33
|
+
return { containerRef, isScroll, isBottom, checkScroll };
|
|
34
|
+
}
|
|
@@ -3,14 +3,17 @@ import React, { useState } from 'react';
|
|
|
3
3
|
import ChatButton from './ChatButton';
|
|
4
4
|
import ChatWidget from './ChatWidget';
|
|
5
5
|
import { DaeryuntalkProvider } from './DaeryuntalkContext';
|
|
6
|
+
import { DaeryuntalkToastProvider } from './Toast/DaeryuntalkToastProvider';
|
|
6
7
|
const Daeryuntalk = ({ tel = '1800-7905' }) => {
|
|
7
8
|
const [isOpen, setIsOpen] = useState(false);
|
|
8
9
|
const toggleChat = () => {
|
|
9
10
|
setIsOpen(prev => !prev);
|
|
10
11
|
};
|
|
11
|
-
return (<
|
|
12
|
-
<
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
return (<DaeryuntalkToastProvider>
|
|
13
|
+
<DaeryuntalkProvider propsTel={tel}>
|
|
14
|
+
<ChatButton isOpen={isOpen} onClick={toggleChat}/>
|
|
15
|
+
<ChatWidget isOpen={isOpen}/>
|
|
16
|
+
</DaeryuntalkProvider>
|
|
17
|
+
</DaeryuntalkToastProvider>);
|
|
15
18
|
};
|
|
16
19
|
export default Daeryuntalk;
|
|
@@ -5,6 +5,8 @@ import ChatButton from './ChatButton';
|
|
|
5
5
|
import ChatWidget from './ChatWidget';
|
|
6
6
|
import { DaeryuntalkProvider } from './DaeryuntalkContext';
|
|
7
7
|
import ImageViewer from './Viewer/ImageViewer';
|
|
8
|
+
import { DaeryuntalkToastProvider } from './Toast/DaeryuntalkToastProvider';
|
|
9
|
+
import ToastRenderer from './Toast/ToastRender';
|
|
8
10
|
|
|
9
11
|
type DaeryuntalkProps = {
|
|
10
12
|
tel: string;
|
|
@@ -18,10 +20,12 @@ const Daeryuntalk: React.FC<DaeryuntalkProps> = ({ tel = '1800-7905' }) => {
|
|
|
18
20
|
};
|
|
19
21
|
|
|
20
22
|
return (
|
|
21
|
-
<
|
|
22
|
-
<
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
<DaeryuntalkToastProvider>
|
|
24
|
+
<DaeryuntalkProvider propsTel={tel}>
|
|
25
|
+
<ChatButton isOpen={isOpen} onClick={toggleChat} />
|
|
26
|
+
<ChatWidget isOpen={isOpen} />
|
|
27
|
+
</DaeryuntalkProvider>
|
|
28
|
+
</DaeryuntalkToastProvider>
|
|
25
29
|
);
|
|
26
30
|
};
|
|
27
31
|
|