@esvndev/es-react-template-chat 0.0.100 → 0.0.102
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 +11 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -72904,17 +72904,17 @@ const ChatLog = (props) => {
|
|
|
72904
72904
|
setOpenModalReminder(true);
|
|
72905
72905
|
}, children: "Xem chi ti\u1EBFt" })] }));
|
|
72906
72906
|
}, []);
|
|
72907
|
-
|
|
72908
|
-
|
|
72909
|
-
|
|
72910
|
-
|
|
72911
|
-
|
|
72912
|
-
|
|
72913
|
-
|
|
72914
|
-
|
|
72915
|
-
|
|
72916
|
-
|
|
72917
|
-
|
|
72907
|
+
useCallback((type, msg, path) => {
|
|
72908
|
+
switch (type) {
|
|
72909
|
+
case "file": // ✅ THÊM CASE NÀY
|
|
72910
|
+
const fileName = path?.[0]?.name || '';
|
|
72911
|
+
return `[File] ${fileName}`;
|
|
72912
|
+
case "image":
|
|
72913
|
+
return "[Hình ảnh]";
|
|
72914
|
+
default:
|
|
72915
|
+
return msg;
|
|
72916
|
+
}
|
|
72917
|
+
}, []);
|
|
72918
72918
|
// const renderReplyContent = useCallback((replyMsg: any) => {
|
|
72919
72919
|
// const replyData = useParsedChatData(replyMsg)
|
|
72920
72920
|
// return (
|