@daeryun/dr_components 1.2.17 → 1.2.19
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/ChatWidget.d.ts +1 -0
- package/dist/components/Daeryuntalk/ChatWidget.jsx +114 -31
- package/dist/components/Daeryuntalk/ChatWidget.tsx +120 -37
- package/dist/components/Daeryuntalk/Viewer/TbPcViewer.tsx +0 -9
- package/dist/components/Daeryuntalk/index.jsx +17 -1
- package/dist/components/Daeryuntalk/index.tsx +26 -2
- package/dist/components/DaeryuntalkBackup/ChatButton.d.ts +11 -0
- package/dist/components/DaeryuntalkBackup/ChatButton.jsx +123 -0
- package/dist/components/DaeryuntalkBackup/ChatButton.tsx +157 -0
- package/dist/components/DaeryuntalkBackup/ChatConversation.d.ts +21 -0
- package/dist/components/DaeryuntalkBackup/ChatConversation.jsx +259 -0
- package/dist/components/DaeryuntalkBackup/ChatConversation.tsx +390 -0
- package/dist/components/DaeryuntalkBackup/ChatConversationItem/ChatConversationHeader.d.ts +16 -0
- package/dist/components/DaeryuntalkBackup/ChatConversationItem/ChatConversationHeader.jsx +50 -0
- package/dist/components/DaeryuntalkBackup/ChatConversationItem/ChatConversationHeader.tsx +108 -0
- package/dist/components/DaeryuntalkBackup/ChatHomeView.d.ts +14 -0
- package/dist/components/DaeryuntalkBackup/ChatHomeView.jsx +147 -0
- package/dist/components/DaeryuntalkBackup/ChatHomeView.tsx +262 -0
- package/dist/components/DaeryuntalkBackup/ChatInput.d.ts +8 -0
- package/dist/components/DaeryuntalkBackup/ChatInput.jsx +64 -0
- package/dist/components/DaeryuntalkBackup/ChatInput.tsx +98 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/AgeCheckBox.d.ts +6 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/AgeCheckBox.jsx +19 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/AgeCheckBox.tsx +27 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/ChatFile.d.ts +10 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/ChatFile.jsx +165 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/ChatFile.tsx +244 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/ChatLoading.d.ts +6 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/ChatLoading.jsx +12 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/ChatLoading.tsx +25 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/ChatPrivacyAuth.d.ts +8 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/ChatPrivacyAuth.jsx +100 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/ChatPrivacyAuth.tsx +135 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/ChatWrapper.d.ts +8 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/ChatWrapper.jsx +14 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/ChatWrapper.tsx +26 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/RichText.d.ts +7 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/RichText.jsx +37 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/RichText.tsx +45 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/TimeWrapper.d.ts +9 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/TimeWrapper.jsx +10 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/TimeWrapper.tsx +21 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/TypingComp.d.ts +3 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/TypingComp.jsx +34 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/TypingComp.tsx +43 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/WorkFlowAuthForm.d.ts +8 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/WorkFlowAuthForm.jsx +20 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/WorkFlowAuthForm.tsx +32 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/WorkFlowClickData.d.ts +7 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/WorkFlowClickData.jsx +21 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/WorkFlowClickData.tsx +37 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/WorkFlowImg.d.ts +9 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/WorkFlowImg.jsx +178 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/WorkFlowImg.tsx +233 -0
- package/dist/components/DaeryuntalkBackup/ChatMessage.d.ts +20 -0
- package/dist/components/DaeryuntalkBackup/ChatMessage.jsx +198 -0
- package/dist/components/DaeryuntalkBackup/ChatMessage.tsx +295 -0
- package/dist/components/DaeryuntalkBackup/ChatObject/FieldWorkObject.d.ts +9 -0
- package/dist/components/DaeryuntalkBackup/ChatObject/FieldWorkObject.jsx +39 -0
- package/dist/components/DaeryuntalkBackup/ChatObject/FieldWorkObject.tsx +75 -0
- package/dist/components/DaeryuntalkBackup/ChatObject/ObjectBack.d.ts +7 -0
- package/dist/components/DaeryuntalkBackup/ChatObject/ObjectBack.jsx +20 -0
- package/dist/components/DaeryuntalkBackup/ChatObject/ObjectBack.tsx +39 -0
- package/dist/components/DaeryuntalkBackup/ChatObject/ObjectButton.d.ts +10 -0
- package/dist/components/DaeryuntalkBackup/ChatObject/ObjectButton.jsx +138 -0
- package/dist/components/DaeryuntalkBackup/ChatObject/ObjectButton.tsx +177 -0
- package/dist/components/DaeryuntalkBackup/ChatWidget.d.ts +13 -0
- package/dist/components/DaeryuntalkBackup/ChatWidget.jsx +154 -0
- package/dist/components/DaeryuntalkBackup/ChatWidget.tsx +221 -0
- package/dist/components/DaeryuntalkBackup/DaeryuntalkContext.d.ts +103 -0
- package/dist/components/DaeryuntalkBackup/DaeryuntalkContext.jsx +207 -0
- package/dist/components/DaeryuntalkBackup/DaeryuntalkContext.tsx +350 -0
- package/dist/components/DaeryuntalkBackup/DateSeparator.d.ts +6 -0
- package/dist/components/DaeryuntalkBackup/DateSeparator.jsx +14 -0
- package/dist/components/DaeryuntalkBackup/DateSeparator.tsx +24 -0
- package/dist/components/DaeryuntalkBackup/FixedErrorBox.d.ts +7 -0
- package/dist/components/DaeryuntalkBackup/FixedErrorBox.jsx +34 -0
- package/dist/components/DaeryuntalkBackup/FixedErrorBox.tsx +73 -0
- package/dist/components/DaeryuntalkBackup/History/AuthForm.d.ts +10 -0
- package/dist/components/DaeryuntalkBackup/History/AuthForm.jsx +157 -0
- package/dist/components/DaeryuntalkBackup/History/AuthForm.tsx +206 -0
- package/dist/components/DaeryuntalkBackup/HistoryView.d.ts +19 -0
- package/dist/components/DaeryuntalkBackup/HistoryView.jsx +94 -0
- package/dist/components/DaeryuntalkBackup/HistoryView.tsx +182 -0
- package/dist/components/DaeryuntalkBackup/HomeView.d.ts +12 -0
- package/dist/components/DaeryuntalkBackup/HomeView.jsx +178 -0
- package/dist/components/DaeryuntalkBackup/HomeView.tsx +261 -0
- package/dist/components/DaeryuntalkBackup/NavigationFooter.d.ts +11 -0
- package/dist/components/DaeryuntalkBackup/NavigationFooter.jsx +44 -0
- package/dist/components/DaeryuntalkBackup/NavigationFooter.tsx +98 -0
- package/dist/components/DaeryuntalkBackup/NoticeMessage.d.ts +7 -0
- package/dist/components/DaeryuntalkBackup/NoticeMessage.jsx +40 -0
- package/dist/components/DaeryuntalkBackup/NoticeMessage.tsx +60 -0
- package/dist/components/DaeryuntalkBackup/Tiptap/DisabledInput.d.ts +6 -0
- package/dist/components/DaeryuntalkBackup/Tiptap/DisabledInput.jsx +17 -0
- package/dist/components/DaeryuntalkBackup/Tiptap/DisabledInput.tsx +28 -0
- package/dist/components/DaeryuntalkBackup/Tiptap/Tiptap.d.ts +20 -0
- package/dist/components/DaeryuntalkBackup/Tiptap/Tiptap.jsx +130 -0
- package/dist/components/DaeryuntalkBackup/Tiptap/Tiptap.tsx +181 -0
- package/dist/components/DaeryuntalkBackup/Toast/DaeryuntalkToastProvider.d.ts +23 -0
- package/dist/components/DaeryuntalkBackup/Toast/DaeryuntalkToastProvider.jsx +40 -0
- package/dist/components/DaeryuntalkBackup/Toast/DaeryuntalkToastProvider.tsx +70 -0
- package/dist/components/DaeryuntalkBackup/Toast/Toast.d.ts +11 -0
- package/dist/components/DaeryuntalkBackup/Toast/Toast.jsx +64 -0
- package/dist/components/DaeryuntalkBackup/Toast/Toast.tsx +98 -0
- package/dist/components/DaeryuntalkBackup/Toast/ToastRender.d.ts +1 -0
- package/dist/components/DaeryuntalkBackup/Toast/ToastRender.jsx +22 -0
- package/dist/components/DaeryuntalkBackup/Toast/ToastRender.tsx +30 -0
- package/dist/components/DaeryuntalkBackup/Viewer/ImageViewer.d.ts +9 -0
- package/dist/components/DaeryuntalkBackup/Viewer/ImageViewer.jsx +98 -0
- package/dist/components/DaeryuntalkBackup/Viewer/ImageViewer.tsx +138 -0
- package/dist/components/DaeryuntalkBackup/Viewer/MobileViewer.d.ts +18 -0
- package/dist/components/DaeryuntalkBackup/Viewer/MobileViewer.jsx +104 -0
- package/dist/components/DaeryuntalkBackup/Viewer/MobileViewer.tsx +182 -0
- package/dist/components/DaeryuntalkBackup/Viewer/TbPcViewer.d.ts +24 -0
- package/dist/components/DaeryuntalkBackup/Viewer/TbPcViewer.jsx +141 -0
- package/dist/components/DaeryuntalkBackup/Viewer/TbPcViewer.tsx +278 -0
- package/dist/components/DaeryuntalkBackup/ViewportHandler.d.ts +6 -0
- package/dist/components/DaeryuntalkBackup/ViewportHandler.jsx +25 -0
- package/dist/components/DaeryuntalkBackup/ViewportHandler.tsx +32 -0
- package/dist/components/DaeryuntalkBackup/_api/daeryuntalk/index.d.ts +177 -0
- package/dist/components/DaeryuntalkBackup/_api/daeryuntalk/index.js +801 -0
- package/dist/components/DaeryuntalkBackup/_api/daeryuntalk/index.ts +1097 -0
- package/dist/components/DaeryuntalkBackup/_api/daeryuntalk/type/response.d.ts +131 -0
- package/dist/components/DaeryuntalkBackup/_api/daeryuntalk/type/response.js +1 -0
- package/dist/components/DaeryuntalkBackup/_api/daeryuntalk/type/response.ts +159 -0
- package/dist/components/DaeryuntalkBackup/_api/index.d.ts +6 -0
- package/dist/components/DaeryuntalkBackup/_api/index.js +6 -0
- package/dist/components/DaeryuntalkBackup/_api/index.ts +7 -0
- package/dist/components/DaeryuntalkBackup/_enums/ags_check_status.d.ts +5 -0
- package/dist/components/DaeryuntalkBackup/_enums/ags_check_status.js +9 -0
- package/dist/components/DaeryuntalkBackup/_enums/ags_check_status.ts +9 -0
- package/dist/components/DaeryuntalkBackup/_enums/ask-status.d.ts +13 -0
- package/dist/components/DaeryuntalkBackup/_enums/ask-status.js +25 -0
- package/dist/components/DaeryuntalkBackup/_enums/ask-status.ts +26 -0
- package/dist/components/DaeryuntalkBackup/_enums/error.d.ts +109 -0
- package/dist/components/DaeryuntalkBackup/_enums/error.js +254 -0
- package/dist/components/DaeryuntalkBackup/_enums/error.ts +289 -0
- package/dist/components/DaeryuntalkBackup/_enums/message_type.d.ts +6 -0
- package/dist/components/DaeryuntalkBackup/_enums/message_type.js +13 -0
- package/dist/components/DaeryuntalkBackup/_enums/message_type.ts +13 -0
- package/dist/components/DaeryuntalkBackup/_enums/sender_type.d.ts +8 -0
- package/dist/components/DaeryuntalkBackup/_enums/sender_type.js +16 -0
- package/dist/components/DaeryuntalkBackup/_enums/sender_type.ts +16 -0
- package/dist/components/DaeryuntalkBackup/_enums/socket_type.d.ts +34 -0
- package/dist/components/DaeryuntalkBackup/_enums/socket_type.js +46 -0
- package/dist/components/DaeryuntalkBackup/_enums/socket_type.ts +56 -0
- package/dist/components/DaeryuntalkBackup/_enums/template.d.ts +32 -0
- package/dist/components/DaeryuntalkBackup/_enums/template.js +76 -0
- package/dist/components/DaeryuntalkBackup/_enums/template.ts +81 -0
- package/dist/components/DaeryuntalkBackup/_enums/work_flow_object_expose.d.ts +33 -0
- package/dist/components/DaeryuntalkBackup/_enums/work_flow_object_expose.js +66 -0
- package/dist/components/DaeryuntalkBackup/_enums/work_flow_object_expose.ts +71 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useChatHandler.d.ts +48 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useChatHandler.js +465 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useChatHandler.ts +595 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useFullURL.d.ts +1 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useFullURL.jsx +15 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useFullURL.tsx +17 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useHistoryHandler.d.ts +24 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useHistoryHandler.js +112 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useHistoryHandler.ts +144 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useSocketEventHandler.d.ts +44 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useSocketEventHandler.js +534 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useSocketEventHandler.ts +706 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useViewerHook.d.ts +8 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useViewerHook.js +18 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useViewerHook.ts +23 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useWorkFlow.d.ts +9 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useWorkFlow.js +109 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useWorkFlow.ts +121 -0
- package/dist/components/DaeryuntalkBackup/_hooks/useHoverScrollbar.d.ts +12 -0
- package/dist/components/DaeryuntalkBackup/_hooks/useHoverScrollbar.js +48 -0
- package/dist/components/DaeryuntalkBackup/_hooks/useHoverScrollbar.ts +73 -0
- package/dist/components/DaeryuntalkBackup/_hooks/useScrollShadow.d.ts +7 -0
- package/dist/components/DaeryuntalkBackup/_hooks/useScrollShadow.js +42 -0
- package/dist/components/DaeryuntalkBackup/_hooks/useScrollShadow.ts +52 -0
- package/dist/components/DaeryuntalkBackup/_hooks/useWindowSize.d.ts +6 -0
- package/dist/components/DaeryuntalkBackup/_hooks/useWindowSize.js +20 -0
- package/dist/components/DaeryuntalkBackup/_hooks/useWindowSize.ts +30 -0
- package/dist/components/DaeryuntalkBackup/_hooks/view/useChatSocketState.d.ts +2 -0
- package/dist/components/DaeryuntalkBackup/_hooks/view/useChatSocketState.js +26 -0
- package/dist/components/DaeryuntalkBackup/_hooks/view/useChatSocketState.ts +43 -0
- package/dist/components/DaeryuntalkBackup/_hooks/view/useHistoryView.d.ts +27 -0
- package/dist/components/DaeryuntalkBackup/_hooks/view/useHistoryView.js +80 -0
- package/dist/components/DaeryuntalkBackup/_hooks/view/useHistoryView.ts +101 -0
- package/dist/components/DaeryuntalkBackup/_hooks/view/useHomeView.d.ts +18 -0
- package/dist/components/DaeryuntalkBackup/_hooks/view/useHomeView.js +66 -0
- package/dist/components/DaeryuntalkBackup/_hooks/view/useHomeView.ts +75 -0
- package/dist/components/DaeryuntalkBackup/_lib/index.d.ts +7 -0
- package/dist/components/DaeryuntalkBackup/_lib/index.js +103 -0
- package/dist/components/DaeryuntalkBackup/_lib/index.ts +136 -0
- package/dist/components/DaeryuntalkBackup/_lib/utils.d.ts +17 -0
- package/dist/components/DaeryuntalkBackup/_lib/utils.js +94 -0
- package/dist/components/DaeryuntalkBackup/_lib/utils.ts +119 -0
- package/dist/components/DaeryuntalkBackup/_types/message.d.ts +92 -0
- package/dist/components/DaeryuntalkBackup/_types/message.js +25 -0
- package/dist/components/DaeryuntalkBackup/_types/message.ts +156 -0
- package/dist/components/DaeryuntalkBackup/_types/message_object.d.ts +17 -0
- package/dist/components/DaeryuntalkBackup/_types/message_object.js +1 -0
- package/dist/components/DaeryuntalkBackup/_types/message_object.ts +18 -0
- package/dist/components/DaeryuntalkBackup/_types/socket/workflow.d.ts +15 -0
- package/dist/components/DaeryuntalkBackup/_types/socket/workflow.js +1 -0
- package/dist/components/DaeryuntalkBackup/_types/socket/workflow.ts +15 -0
- package/dist/components/DaeryuntalkBackup/_ui/ShadowBox.d.ts +6 -0
- package/dist/components/DaeryuntalkBackup/_ui/ShadowBox.jsx +5 -0
- package/dist/components/DaeryuntalkBackup/_ui/ShadowBox.tsx +15 -0
- package/dist/components/DaeryuntalkBackup/_ui/buttons/Button1.d.ts +10 -0
- package/dist/components/DaeryuntalkBackup/_ui/buttons/Button1.jsx +12 -0
- package/dist/components/DaeryuntalkBackup/_ui/buttons/Button1.tsx +29 -0
- package/dist/components/DaeryuntalkBackup/_ui/buttons/Button2.d.ts +10 -0
- package/dist/components/DaeryuntalkBackup/_ui/buttons/Button2.jsx +12 -0
- package/dist/components/DaeryuntalkBackup/_ui/buttons/Button2.tsx +29 -0
- package/dist/components/DaeryuntalkBackup/_ui/buttons/Button3.d.ts +10 -0
- package/dist/components/DaeryuntalkBackup/_ui/buttons/Button3.jsx +12 -0
- package/dist/components/DaeryuntalkBackup/_ui/buttons/Button3.tsx +29 -0
- package/dist/components/DaeryuntalkBackup/_ui/buttons/Button4.d.ts +10 -0
- package/dist/components/DaeryuntalkBackup/_ui/buttons/Button4.jsx +12 -0
- package/dist/components/DaeryuntalkBackup/_ui/buttons/Button4.tsx +29 -0
- package/dist/components/DaeryuntalkBackup/_ui/checkboxs/CheckBox1.d.ts +8 -0
- package/dist/components/DaeryuntalkBackup/_ui/checkboxs/CheckBox1.jsx +15 -0
- package/dist/components/DaeryuntalkBackup/_ui/checkboxs/CheckBox1.tsx +38 -0
- package/dist/components/DaeryuntalkBackup/_ui/checkboxs/CheckBox2.d.ts +8 -0
- package/dist/components/DaeryuntalkBackup/_ui/checkboxs/CheckBox2.jsx +21 -0
- package/dist/components/DaeryuntalkBackup/_ui/checkboxs/CheckBox2.tsx +50 -0
- package/dist/components/DaeryuntalkBackup/_ui/inputs/Input1.d.ts +12 -0
- package/dist/components/DaeryuntalkBackup/_ui/inputs/Input1.jsx +9 -0
- package/dist/components/DaeryuntalkBackup/_ui/inputs/Input1.tsx +39 -0
- package/dist/components/DaeryuntalkBackup/_ui/inputs/Input2.d.ts +13 -0
- package/dist/components/DaeryuntalkBackup/_ui/inputs/Input2.jsx +10 -0
- package/dist/components/DaeryuntalkBackup/_ui/inputs/Input2.tsx +43 -0
- package/dist/components/DaeryuntalkBackup/index.d.ts +8 -0
- package/dist/components/DaeryuntalkBackup/index.jsx +190 -0
- package/dist/components/DaeryuntalkBackup/index.tsx +261 -0
- package/dist/components/banner/TopBanner.jsx +2 -2
- package/dist/components/banner/TopBanner.tsx +4 -2
- package/dist/styles/globals.css +5 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React, { FormEvent, useEffect, useState } from 'react';
|
|
3
|
+
import ChatWrapper from './ChatWrapper';
|
|
4
|
+
import { Form, Message } from '../_types/message';
|
|
5
|
+
import Input1 from '../_ui/inputs/Input1';
|
|
6
|
+
import { useDaeryuntalk } from '../DaeryuntalkContext';
|
|
7
|
+
import Button1 from '../_ui/buttons/Button1';
|
|
8
|
+
import CheckBox1 from '../_ui/checkboxs/CheckBox1';
|
|
9
|
+
|
|
10
|
+
interface props {
|
|
11
|
+
message: Message;
|
|
12
|
+
isOperator: boolean;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// 채팅문의 번호 인증
|
|
16
|
+
const ChatPrivacyAuth = ({ message, isOperator }: props) => {
|
|
17
|
+
const { chatUserUpdate, chatInquiryNumber } = useDaeryuntalk();
|
|
18
|
+
const formData: Form | null = message?.form ?? null;
|
|
19
|
+
const [authObject, setAuthObject] = useState<{
|
|
20
|
+
name?: string;
|
|
21
|
+
cell_phone_number?: string;
|
|
22
|
+
[key: string]: string | undefined;
|
|
23
|
+
}>({
|
|
24
|
+
name: '',
|
|
25
|
+
cell_phone_number: ''
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
// const [isAgeCheck, setIsAgeCheck] = useState<boolean>(false);
|
|
29
|
+
|
|
30
|
+
const [isModify, setIsModify] = useState<boolean>(false);
|
|
31
|
+
|
|
32
|
+
useEffect(() => {
|
|
33
|
+
if (formData) {
|
|
34
|
+
setAuthObject({
|
|
35
|
+
name: formData.inputs.find(item => item?.bindingKey === 'name')?.value ?? '',
|
|
36
|
+
cell_phone_number: formData.inputs.find(item => item?.bindingKey === 'cell_phone_number')?.value ?? ''
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
}, [formData]);
|
|
40
|
+
|
|
41
|
+
const handleInput = (e: FormEvent<HTMLInputElement>) => {
|
|
42
|
+
const { name, value } = e.currentTarget;
|
|
43
|
+
setAuthObject(prev => {
|
|
44
|
+
return {
|
|
45
|
+
...prev,
|
|
46
|
+
[name]: value
|
|
47
|
+
};
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
const update = async () => {
|
|
52
|
+
await chatUserUpdate({
|
|
53
|
+
chatInquiryNumber: chatInquiryNumber || '',
|
|
54
|
+
cellPhoneNumber: authObject.cell_phone_number || '',
|
|
55
|
+
name: authObject.name || '',
|
|
56
|
+
messageNumber: message?.messageNumber || ''
|
|
57
|
+
});
|
|
58
|
+
setIsModify(false);
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
// const ageCheck = (e: React.ChangeEvent<HTMLInputElement>) => {
|
|
62
|
+
// setIsAgeCheck(e.target.checked);
|
|
63
|
+
// };
|
|
64
|
+
|
|
65
|
+
const goModify = () => {
|
|
66
|
+
// setIsAgeCheck(false);
|
|
67
|
+
setIsModify(true);
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
if (!formData) {
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
const renderSetAuth = () => (
|
|
75
|
+
<div className="flex flex-col gap-[16px]">
|
|
76
|
+
{formData.inputs.map((item, index) => (
|
|
77
|
+
<div className="flex flex-col gap-[8px]" key={index}>
|
|
78
|
+
<p className="text-[14px] font-[700] leading-[100%] tracking-[-4%]">{item.label}</p>
|
|
79
|
+
<Input1
|
|
80
|
+
onChange={handleInput}
|
|
81
|
+
value={authObject[item.bindingKey ?? ''] ?? ''}
|
|
82
|
+
type={item.type}
|
|
83
|
+
name={item.bindingKey || ''}
|
|
84
|
+
readOnly={isModify ? false : (item.readOnly ?? false)}
|
|
85
|
+
/>
|
|
86
|
+
</div>
|
|
87
|
+
))}
|
|
88
|
+
{/* <CheckBox1 title={'(필수)만 14세 이상입니다.'} checked={isAgeCheck} onChange={ageCheck} /> */}
|
|
89
|
+
<Button1 type="button" onClick={update}>
|
|
90
|
+
저장
|
|
91
|
+
</Button1>
|
|
92
|
+
</div>
|
|
93
|
+
);
|
|
94
|
+
|
|
95
|
+
return (
|
|
96
|
+
<ChatWrapper isOperator={isOperator} className={`!py-[16px]`}>
|
|
97
|
+
{/* 최초 요청 시 */}
|
|
98
|
+
{!formData.submittedAt && renderSetAuth()}
|
|
99
|
+
{/* 회원 정보 보여주기 */}
|
|
100
|
+
{formData.submittedAt && !isModify && (
|
|
101
|
+
<div className={`flex flex-col gap-[16px]`}>
|
|
102
|
+
<div className={`flex flex-col`}>
|
|
103
|
+
{formData.inputs.map((input, index) => {
|
|
104
|
+
return (
|
|
105
|
+
<div
|
|
106
|
+
className={`flex flex-col ${index === 0 ? ' border-b-[1px] border-solid border-b-[#EDEDED] pb-[10px] ' : ' mt-[10px] '} `}
|
|
107
|
+
key={`sub-not-modify-${index}`}
|
|
108
|
+
>
|
|
109
|
+
<div
|
|
110
|
+
className={`flex h-[28px] items-center text-[14px] font-[700] leading-[100%] tracking-[-4%] `}
|
|
111
|
+
>
|
|
112
|
+
{input.label}
|
|
113
|
+
</div>
|
|
114
|
+
<div
|
|
115
|
+
className={`flex h-[28px] items-center text-[16px] font-[400] leading-[140%] tracking-[-4%] `}
|
|
116
|
+
>
|
|
117
|
+
{input.value}
|
|
118
|
+
</div>
|
|
119
|
+
</div>
|
|
120
|
+
);
|
|
121
|
+
})}
|
|
122
|
+
</div>
|
|
123
|
+
<Button1 type={'button'} onClick={goModify}>
|
|
124
|
+
정보수정
|
|
125
|
+
</Button1>
|
|
126
|
+
</div>
|
|
127
|
+
)}
|
|
128
|
+
|
|
129
|
+
{/* 회원 정보 수정 */}
|
|
130
|
+
{formData.submittedAt && isModify && renderSetAuth()}
|
|
131
|
+
</ChatWrapper>
|
|
132
|
+
);
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
export default ChatPrivacyAuth;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
const ChatWrapper = ({ isOperator, children, className = '' }) => {
|
|
4
|
+
const operatorClassName = 'border-drTalkGrayscale4 text-drTalkBlack';
|
|
5
|
+
const customerClassName = 'border-drTalkBtnActive2 text-drTalkHover bg-drTalkGrayscale5';
|
|
6
|
+
return (<div className={`
|
|
7
|
+
${isOperator ? operatorClassName : customerClassName} ${className}
|
|
8
|
+
dr_talk_body_medium2 w-full whitespace-pre-line
|
|
9
|
+
break-words rounded-[10px] border px-[12px] py-[8px]
|
|
10
|
+
`}>
|
|
11
|
+
{children}
|
|
12
|
+
</div>);
|
|
13
|
+
};
|
|
14
|
+
export default ChatWrapper;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React, { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
interface props {
|
|
5
|
+
isOperator: boolean;
|
|
6
|
+
className?: string;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
const ChatWrapper = ({ isOperator, children, className = '' }: props) => {
|
|
10
|
+
const operatorClassName = 'border-drTalkGrayscale4 text-drTalkBlack';
|
|
11
|
+
const customerClassName = 'border-drTalkBtnActive2 text-drTalkHover bg-drTalkGrayscale5';
|
|
12
|
+
|
|
13
|
+
return (
|
|
14
|
+
<div
|
|
15
|
+
className={`
|
|
16
|
+
${isOperator ? operatorClassName : customerClassName} ${className}
|
|
17
|
+
dr_talk_body_medium2 w-full whitespace-pre-line
|
|
18
|
+
break-words rounded-[10px] border px-[12px] py-[8px]
|
|
19
|
+
`}
|
|
20
|
+
>
|
|
21
|
+
{children}
|
|
22
|
+
</div>
|
|
23
|
+
);
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export default ChatWrapper;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { EditorContent, useEditor } from '@tiptap/react';
|
|
4
|
+
import StarterKit from '@tiptap/starter-kit';
|
|
5
|
+
import Image from '@tiptap/extension-image';
|
|
6
|
+
import Color from '@tiptap/extension-color';
|
|
7
|
+
import Link from '@tiptap/extension-link';
|
|
8
|
+
import TextStyle from '@tiptap/extension-text-style';
|
|
9
|
+
const RichText = ({ message }) => {
|
|
10
|
+
var _a;
|
|
11
|
+
const editor = useEditor({
|
|
12
|
+
extensions: [
|
|
13
|
+
StarterKit,
|
|
14
|
+
Image,
|
|
15
|
+
Link.configure({
|
|
16
|
+
openOnClick: true
|
|
17
|
+
}),
|
|
18
|
+
TextStyle,
|
|
19
|
+
Color.configure({
|
|
20
|
+
types: ['textStyle']
|
|
21
|
+
})
|
|
22
|
+
],
|
|
23
|
+
content: (_a = message.richText) === null || _a === void 0 ? void 0 : _a.structuredData,
|
|
24
|
+
editable: false
|
|
25
|
+
});
|
|
26
|
+
return (<div className="tiptap prose !dr_talk_body_medium2 ">
|
|
27
|
+
<EditorContent editor={editor}/>
|
|
28
|
+
<style>{`
|
|
29
|
+
.tiptap a {
|
|
30
|
+
color: #2563eb; /* Tailwind blue-600 */
|
|
31
|
+
text-decoration: underline;
|
|
32
|
+
word-break:break-all;
|
|
33
|
+
}
|
|
34
|
+
`}</style>
|
|
35
|
+
</div>);
|
|
36
|
+
};
|
|
37
|
+
export default RichText;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Message } from '../_types/message';
|
|
4
|
+
import { EditorContent, useEditor } from '@tiptap/react';
|
|
5
|
+
import StarterKit from '@tiptap/starter-kit';
|
|
6
|
+
import Image from '@tiptap/extension-image';
|
|
7
|
+
import Color from '@tiptap/extension-color';
|
|
8
|
+
import Link from '@tiptap/extension-link';
|
|
9
|
+
import TextStyle from '@tiptap/extension-text-style';
|
|
10
|
+
|
|
11
|
+
interface props {
|
|
12
|
+
message: Message;
|
|
13
|
+
}
|
|
14
|
+
const RichText = ({ message }: props) => {
|
|
15
|
+
const editor = useEditor({
|
|
16
|
+
extensions: [
|
|
17
|
+
StarterKit,
|
|
18
|
+
Image,
|
|
19
|
+
Link.configure({
|
|
20
|
+
openOnClick: true
|
|
21
|
+
}),
|
|
22
|
+
TextStyle,
|
|
23
|
+
Color.configure({
|
|
24
|
+
types: ['textStyle']
|
|
25
|
+
})
|
|
26
|
+
],
|
|
27
|
+
content: message.richText?.structuredData,
|
|
28
|
+
editable: false
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
return (
|
|
32
|
+
<div className="tiptap prose !dr_talk_body_medium2 ">
|
|
33
|
+
<EditorContent editor={editor} />
|
|
34
|
+
<style>{`
|
|
35
|
+
.tiptap a {
|
|
36
|
+
color: #2563eb; /* Tailwind blue-600 */
|
|
37
|
+
text-decoration: underline;
|
|
38
|
+
word-break:break-all;
|
|
39
|
+
}
|
|
40
|
+
`}</style>
|
|
41
|
+
</div>
|
|
42
|
+
);
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export default RichText;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
const TimeWrapper = ({ time, children, timePosition = 'right', className = '' }) => {
|
|
4
|
+
return (<div className={`flex flex-row items-end gap-[4px] ${className}`}>
|
|
5
|
+
{timePosition === 'left' && <div className="text-xs font-normal text-[#C2C2C2]">{time}</div>}
|
|
6
|
+
{children}
|
|
7
|
+
{timePosition === 'right' && <div className="text-xs font-normal text-[#C2C2C2]">{time}</div>}
|
|
8
|
+
</div>);
|
|
9
|
+
};
|
|
10
|
+
export default TimeWrapper;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
|
|
4
|
+
interface TimeWrapperProps {
|
|
5
|
+
time: string;
|
|
6
|
+
timePosition?: 'right' | 'left';
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const TimeWrapper: React.FC<TimeWrapperProps> = ({ time, children, timePosition = 'right', className = '' }) => {
|
|
12
|
+
return (
|
|
13
|
+
<div className={`flex flex-row items-end gap-[4px] ${className}`}>
|
|
14
|
+
{timePosition === 'left' && <div className="text-xs font-normal text-[#C2C2C2]">{time}</div>}
|
|
15
|
+
{children}
|
|
16
|
+
{timePosition === 'right' && <div className="text-xs font-normal text-[#C2C2C2]">{time}</div>}
|
|
17
|
+
</div>
|
|
18
|
+
);
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export default TimeWrapper;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import ChatWrapper from './ChatWrapper';
|
|
4
|
+
import Image from 'next/image';
|
|
5
|
+
// 이미지
|
|
6
|
+
// import DaeryunLogoIcon from '../../../asset/images/daeryuntalk/daeryun-logo.svg';
|
|
7
|
+
const TypingComp = () => {
|
|
8
|
+
const s3Url = process.env.NEXT_PUBLIC_S3_URL;
|
|
9
|
+
const DaeryunLogoIcon = `${s3Url}/daeryuntalk/daeryun-logo.svg`;
|
|
10
|
+
return (<div className="flex flex-col">
|
|
11
|
+
<div className="flex items-center gap-[10px]">
|
|
12
|
+
<div className="flex-shrink-0 rounded-full">
|
|
13
|
+
<div className="relative h-full w-full">
|
|
14
|
+
<Image src={DaeryunLogoIcon} alt="대륜 로고" width={24} height={24}/>
|
|
15
|
+
{/* <DaeryunLogoIcon width={24} height={24} /> */}
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
<span className="dr_talk_subtitle_medium text-drTalkBlack">법무법인(유한)대륜</span>
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
<div className="flex items-end pl-[34px]">
|
|
22
|
+
<ChatWrapper isOperator={true} className="!border-[0px] !px-[0px]">
|
|
23
|
+
<div className="flex h-[36px] items-center ">
|
|
24
|
+
<div className="flex animate-pulse space-x-2 rounded-full ">
|
|
25
|
+
<div className="h-[8px] w-[8px] animate-bounce rounded-full bg-drTalkGrayscale2 "></div>
|
|
26
|
+
<div className="h-[8px] w-[8px] animate-bounce rounded-full bg-drTalkGrayscale3" style={{ animationDelay: '0.2s' }}></div>
|
|
27
|
+
<div className="h-[8px] w-[8px] animate-bounce rounded-full bg-drTalkGrayscale3" style={{ animationDelay: '0.4s' }}></div>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
</ChatWrapper>
|
|
31
|
+
</div>
|
|
32
|
+
</div>);
|
|
33
|
+
};
|
|
34
|
+
export default TypingComp;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import ChatWrapper from './ChatWrapper';
|
|
4
|
+
import Image from 'next/image';
|
|
5
|
+
// 이미지
|
|
6
|
+
// import DaeryunLogoIcon from '../../../asset/images/daeryuntalk/daeryun-logo.svg';
|
|
7
|
+
const TypingComp = () => {
|
|
8
|
+
const s3Url = process.env.NEXT_PUBLIC_S3_URL;
|
|
9
|
+
const DaeryunLogoIcon = `${s3Url}/daeryuntalk/daeryun-logo.svg`;
|
|
10
|
+
return (
|
|
11
|
+
<div className="flex flex-col">
|
|
12
|
+
<div className="flex items-center gap-[10px]">
|
|
13
|
+
<div className="flex-shrink-0 rounded-full">
|
|
14
|
+
<div className="relative h-full w-full">
|
|
15
|
+
<Image src={DaeryunLogoIcon} alt="대륜 로고" width={24} height={24} />
|
|
16
|
+
{/* <DaeryunLogoIcon width={24} height={24} /> */}
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
<span className="dr_talk_subtitle_medium text-drTalkBlack">법무법인(유한)대륜</span>
|
|
20
|
+
</div>
|
|
21
|
+
|
|
22
|
+
<div className="flex items-end pl-[34px]">
|
|
23
|
+
<ChatWrapper isOperator={true} className="!border-[0px] !px-[0px]">
|
|
24
|
+
<div className="flex h-[36px] items-center ">
|
|
25
|
+
<div className="flex animate-pulse space-x-2 rounded-full ">
|
|
26
|
+
<div className="h-[8px] w-[8px] animate-bounce rounded-full bg-drTalkGrayscale2 "></div>
|
|
27
|
+
<div
|
|
28
|
+
className="h-[8px] w-[8px] animate-bounce rounded-full bg-drTalkGrayscale3"
|
|
29
|
+
style={{ animationDelay: '0.2s' }}
|
|
30
|
+
></div>
|
|
31
|
+
<div
|
|
32
|
+
className="h-[8px] w-[8px] animate-bounce rounded-full bg-drTalkGrayscale3"
|
|
33
|
+
style={{ animationDelay: '0.4s' }}
|
|
34
|
+
></div>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
</ChatWrapper>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
);
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export default TypingComp;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Message } from '../_types/message';
|
|
3
|
+
interface props {
|
|
4
|
+
message: Message;
|
|
5
|
+
isOperator: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const WorkFlowAuthForm: ({ message, isOperator }: props) => React.JSX.Element | null;
|
|
8
|
+
export default WorkFlowAuthForm;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import ChatWrapper from './ChatWrapper';
|
|
4
|
+
import ChatPrivacyAuth from './ChatPrivacyAuth';
|
|
5
|
+
const WorkFlowAuthForm = ({ message, isOperator }) => {
|
|
6
|
+
var _a, _b;
|
|
7
|
+
const formData = (_a = message === null || message === void 0 ? void 0 : message.form) !== null && _a !== void 0 ? _a : null;
|
|
8
|
+
if (!formData) {
|
|
9
|
+
return null;
|
|
10
|
+
}
|
|
11
|
+
return (<div className={`flex flex-col gap-[10px]`}>
|
|
12
|
+
{message.blocks && ((_b = message.blocks) === null || _b === void 0 ? void 0 : _b.length) > 0 && (<ChatWrapper isOperator={isOperator}>
|
|
13
|
+
{message.blocks
|
|
14
|
+
.filter(fil => fil.type === 'text')
|
|
15
|
+
.map((item, index) => (<p key={index}>{item.value}</p>))}
|
|
16
|
+
</ChatWrapper>)}
|
|
17
|
+
{formData.type === '개인정보수집' && <ChatPrivacyAuth isOperator={isOperator} message={message}/>}
|
|
18
|
+
</div>);
|
|
19
|
+
};
|
|
20
|
+
export default WorkFlowAuthForm;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Message } from '../_types/message';
|
|
4
|
+
import ChatWrapper from './ChatWrapper';
|
|
5
|
+
import ChatPrivacyAuth from './ChatPrivacyAuth';
|
|
6
|
+
|
|
7
|
+
interface props {
|
|
8
|
+
message: Message;
|
|
9
|
+
isOperator: boolean;
|
|
10
|
+
}
|
|
11
|
+
const WorkFlowAuthForm = ({ message, isOperator }: props) => {
|
|
12
|
+
const formData = message?.form ?? null;
|
|
13
|
+
if (!formData) {
|
|
14
|
+
return null;
|
|
15
|
+
}
|
|
16
|
+
return (
|
|
17
|
+
<div className={`flex flex-col gap-[10px]`}>
|
|
18
|
+
{message.blocks && message.blocks?.length > 0 && (
|
|
19
|
+
<ChatWrapper isOperator={isOperator}>
|
|
20
|
+
{message.blocks
|
|
21
|
+
.filter(fil => fil.type === 'text')
|
|
22
|
+
.map((item, index) => (
|
|
23
|
+
<p key={index}>{item.value}</p>
|
|
24
|
+
))}
|
|
25
|
+
</ChatWrapper>
|
|
26
|
+
)}
|
|
27
|
+
{formData.type === '개인정보수집' && <ChatPrivacyAuth isOperator={isOperator} message={message} />}
|
|
28
|
+
</div>
|
|
29
|
+
);
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export default WorkFlowAuthForm;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Image from 'next/image';
|
|
4
|
+
const WorkFlowClickData = ({ message }) => {
|
|
5
|
+
var _a, _b;
|
|
6
|
+
const iconBlock = (_b = (_a = message === null || message === void 0 ? void 0 : message.blocks) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : null;
|
|
7
|
+
if (!iconBlock) {
|
|
8
|
+
return null;
|
|
9
|
+
}
|
|
10
|
+
return (<div className={`
|
|
11
|
+
dr_talk_body_medium2 flex h-[34px] flex-row items-center justify-center
|
|
12
|
+
gap-[6px] rounded-[10px] border-[1px] border-solid border-drTalkBtnActive2 bg-drTalkGrayscale5
|
|
13
|
+
px-[12px] text-drTalkBtnActive2
|
|
14
|
+
`}>
|
|
15
|
+
<div className={`h-[18px] w-[18px]`}>
|
|
16
|
+
<Image className={`h-full w-full`} src={(iconBlock === null || iconBlock === void 0 ? void 0 : iconBlock.iconUrl) || ''} alt={'icon'} width={100} height={100}/>
|
|
17
|
+
</div>
|
|
18
|
+
<p>{iconBlock === null || iconBlock === void 0 ? void 0 : iconBlock.value}</p>
|
|
19
|
+
</div>);
|
|
20
|
+
};
|
|
21
|
+
export default WorkFlowClickData;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Message } from '../_types/message';
|
|
4
|
+
import Image from 'next/image';
|
|
5
|
+
|
|
6
|
+
interface props {
|
|
7
|
+
message: Message;
|
|
8
|
+
}
|
|
9
|
+
const WorkFlowClickData = ({ message }: props) => {
|
|
10
|
+
const iconBlock = message?.blocks?.[0] ?? null;
|
|
11
|
+
if (!iconBlock) {
|
|
12
|
+
return null;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
return (
|
|
16
|
+
<div
|
|
17
|
+
className={`
|
|
18
|
+
dr_talk_body_medium2 flex h-[34px] flex-row items-center justify-center
|
|
19
|
+
gap-[6px] rounded-[10px] border-[1px] border-solid border-drTalkBtnActive2 bg-drTalkGrayscale5
|
|
20
|
+
px-[12px] text-drTalkBtnActive2
|
|
21
|
+
`}
|
|
22
|
+
>
|
|
23
|
+
<div className={`h-[18px] w-[18px]`}>
|
|
24
|
+
<Image
|
|
25
|
+
className={`h-full w-full`}
|
|
26
|
+
src={iconBlock?.iconUrl || ''}
|
|
27
|
+
alt={'icon'}
|
|
28
|
+
width={100}
|
|
29
|
+
height={100}
|
|
30
|
+
/>
|
|
31
|
+
</div>
|
|
32
|
+
<p>{iconBlock?.value}</p>
|
|
33
|
+
</div>
|
|
34
|
+
);
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export default WorkFlowClickData;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Message } from '../_types/message';
|
|
3
|
+
interface props {
|
|
4
|
+
message: Message;
|
|
5
|
+
isOperator: boolean;
|
|
6
|
+
isMobile: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const WorkFlowImg: ({ message, isOperator, isMobile }: props) => React.JSX.Element;
|
|
9
|
+
export default WorkFlowImg;
|