From 4111e5d1ccf4167c94da3faba18242411b79584e Mon Sep 17 00:00:00 2001 From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com> Date: Wed, 11 Feb 2026 22:14:59 +0530 Subject: [PATCH] feat: add globe indicator for public snapshots in chat share button --- .../components/new-chat/chat-share-button.tsx | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/surfsense_web/components/new-chat/chat-share-button.tsx b/surfsense_web/components/new-chat/chat-share-button.tsx index c9e693b21..ece5f7fae 100644 --- a/surfsense_web/components/new-chat/chat-share-button.tsx +++ b/surfsense_web/components/new-chat/chat-share-button.tsx @@ -138,6 +138,26 @@ export function ChatShareButton({ thread, onVisibilityChange, className }: ChatS return (
+ {/* Globe indicator when public snapshots exist - clicks to settings */} + {hasPublicSnapshots && ( + + + + + + {snapshotCount === 1 + ? "This chat has a public link" + : `This chat has ${snapshotCount} public links`} + + + )} + @@ -242,26 +262,6 @@ export function ChatShareButton({ thread, onVisibilityChange, className }: ChatS
- - {/* Globe indicator when public snapshots exist - clicks to settings */} - {hasPublicSnapshots && ( - - - - - - {snapshotCount === 1 - ? "This chat has a public link" - : `This chat has ${snapshotCount} public links`} - - - )} ); }