@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 CHANGED
@@ -72941,17 +72941,17 @@ const ChatLog = (props) => {
72941
72941
  setOpenModalReminder(true);
72942
72942
  }, children: "Xem chi ti\u1EBFt" })] }));
72943
72943
  }, []);
72944
- // const renderMessageReply = useCallback((type: IArchiveType, msg?: string, path?: any[]) => {
72945
- // switch (type) {
72946
- // case "file": // ✅ THÊM CASE NÀY
72947
- // const fileName = path?.[0]?.name || ''
72948
- // return `[File] ${fileName}`
72949
- // case "image":
72950
- // return "[Hình ảnh]"
72951
- // default:
72952
- // return msg
72953
- // }
72954
- // }, [])
72944
+ React.useCallback((type, msg, path) => {
72945
+ switch (type) {
72946
+ case "file": // ✅ THÊM CASE NÀY
72947
+ const fileName = path?.[0]?.name || '';
72948
+ return `[File] ${fileName}`;
72949
+ case "image":
72950
+ return "[Hình ảnh]";
72951
+ default:
72952
+ return msg;
72953
+ }
72954
+ }, []);
72955
72955
  // const renderReplyContent = useCallback((replyMsg: any) => {
72956
72956
  // const replyData = useParsedChatData(replyMsg)
72957
72957
  // return (