- {groupedChats.today.length > 0 && (
-
-
- 今天
-
- {groupedChats.today.map((chat) => (
-
{
- setDeleteId(chatId);
- setShowDeleteDialog(true);
- }}
- setOpenMobile={setOpenMobile}
- />
- ))}
-
- )}
-
- {groupedChats.yesterday.length > 0 && (
-
-
- 昨天
-
- {groupedChats.yesterday.map((chat) => (
-
{
- setDeleteId(chatId);
- setShowDeleteDialog(true);
- }}
- setOpenMobile={setOpenMobile}
- />
- ))}
-
- )}
-
- {groupedChats.lastWeek.length > 0 && (
-
-
- 最近 7 天
-
- {groupedChats.lastWeek.map((chat) => (
-
{
- setDeleteId(chatId);
- setShowDeleteDialog(true);
- }}
- setOpenMobile={setOpenMobile}
- />
- ))}
-
- )}
-
- {groupedChats.lastMonth.length > 0 && (
-
-
- 最近 30 天
-
- {groupedChats.lastMonth.map((chat) => (
-
{
- setDeleteId(chatId);
- setShowDeleteDialog(true);
- }}
- setOpenMobile={setOpenMobile}
- />
- ))}
-
- )}
-
- {groupedChats.older.length > 0 && (
-
-
- 早于 30 天
-
- {groupedChats.older.map((chat) => (
-
{
- setDeleteId(chatId);
- setShowDeleteDialog(true);
- }}
- setOpenMobile={setOpenMobile}
- />
- ))}
-
- )}
-
- );
- })()}
-