- {isRefreshing && (
-
-
- Fetching latest conversations
-
- )}
- {!hasConversations ? (
-
-
-
- No conversations yet
-
-
- Start a new chat
-
-
- ) : (
- <>
-
-
-
-
+ const handleConfirmClearAll = () => {
+ onClearAll?.()
+ setShowClearAllDialog(false)
+ }
- {hasNextPage && (
-
+
+
+
+
Chat history
+ {onClearAll && hasConversations && (
+
+ Clear sessions
+
)}
- >
- )}
-
-
+
+
+ {isRefreshing && (
+
+
+ Fetching latest conversations
+
+ )}
+ {!hasConversations ? (
+
+
+
+ No conversations yet
+
+
+ Start a new chat
+
+
+ ) : (
+ <>
+
+
+
+
+
+ {hasNextPage && (
+
+ {isFetchingNextPage && (
+
+ )}
+
+ )}
+ >
+ )}
+
+