From 5b94c0d69cd5e1e759853257a4b742421ed644cd Mon Sep 17 00:00:00 2001 From: Armin Dervisagic Date: Mon, 16 Mar 2026 21:50:58 +0700 Subject: [PATCH] Integrating superchat widget --- src/routes/$.tsx | 2 -- src/routes/__root.tsx | 37 ++++++++++--------------------------- 2 files changed, 10 insertions(+), 29 deletions(-) diff --git a/src/routes/$.tsx b/src/routes/$.tsx index 99bbd07..ce460f5 100644 --- a/src/routes/$.tsx +++ b/src/routes/$.tsx @@ -10,7 +10,6 @@ import { useFumadocsLoader } from "fumadocs-core/source/client"; import { Suspense } from "react"; import { LLMCopyButton, ViewOptions } from "@/components/ai/page-actions"; import { SidebarDiscordLink } from "@/components/SidebarDiscordLink"; -import { AISearchPanel } from "@/components/search"; import { Feedback } from "@/components/feedback/client"; import type { ActionResponse, PageFeedback } from "@/components/feedback/schema"; import { @@ -202,7 +201,6 @@ function Page() { footer: , }} > - {clientLoader.useContent(data.path, data)} ); diff --git a/src/routes/__root.tsx b/src/routes/__root.tsx index cbdc798..d549f40 100644 --- a/src/routes/__root.tsx +++ b/src/routes/__root.tsx @@ -14,10 +14,6 @@ import appCss from "@/styles/app.css?url"; import { RootProvider as BaseRootProvider } from "fumadocs-ui/provider/base"; import { FrameworkProvider } from "fumadocs-core/framework"; import { CustomSearchDialog } from "@/components/SearchDialog"; -import { AISearch, AISearchTrigger } from "@/components/search"; -import { MessageCircleIcon } from "lucide-react"; -import { buttonVariants } from "@/components/ui/button"; -import { cn } from "@/lib/cn"; import { GlobalScripts } from "@/components/GlobalScripts"; import { DEFAULT_DESCRIPTION, @@ -187,30 +183,17 @@ function RootDocument({ children }: { children: React.ReactNode }) { }} /> - - + + - - Ask AI - - - - {children} - - - + {children} + +