@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.mjs CHANGED
@@ -72904,17 +72904,17 @@ const ChatLog = (props) => {
72904
72904
  setOpenModalReminder(true);
72905
72905
  }, children: "Xem chi ti\u1EBFt" })] }));
72906
72906
  }, []);
72907
- // const renderMessageReply = useCallback((type: IArchiveType, msg?: string, path?: any[]) => {
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
- // }, [])
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 (