+ );
+ }
+
+ // Error state
+ if (isError) {
+ return (
+
+
+
+ Failed to load public chat links. Please try again later.
+
+
+ );
+ }
+
+ // Permission denied
+ if (!canView) {
+ return (
+
+
+
+ You don't have permission to view public chat links in this search space.
+
+
+ );
+ }
+
+ const snapshots = snapshotsData?.snapshots ?? [];
+
+ return (
+
+
+
+
+ Public chat links allow anyone with the URL to view a snapshot of a chat. These links do
+ not update when the original chat changes.
+
+
+
+
+
+
+
+ Public Chat Links
+
+
+ Manage public links to chats in this search space.
+
+
+
+
+
+
+
+ );
+}
diff --git a/surfsense_web/components/public-chat/public-chat-not-found.tsx b/surfsense_web/components/public-chat/public-chat-not-found.tsx
new file mode 100644
index 000000000..8ecff6931
--- /dev/null
+++ b/surfsense_web/components/public-chat/public-chat-not-found.tsx
@@ -0,0 +1,30 @@
+"use client";
+
+import { Link2Off } from "lucide-react";
+import Link from "next/link";
+import { useTranslations } from "next-intl";
+import { Navbar } from "@/components/homepage/navbar";
+
+export function PublicChatNotFound() {
+ const t = useTranslations("public_chat");
+
+ return (
+
+
+