- {code}
-
- )}
- - {description} -
- ) : null} -{children}
; -} - -export function DocFigure({ - src, - alt, -}: { - src: string; - alt: string; -}): React.ReactElement { - return ( -| - {header} - | - ))} -
|---|
| - {cell} - | - ))} -
- {children}
-
- );
-}
diff --git a/src/components/docs/docs-admin-console-link.tsx b/src/components/docs/docs-admin-console-link.tsx
deleted file mode 100644
index 5355cc7..0000000
--- a/src/components/docs/docs-admin-console-link.tsx
+++ /dev/null
@@ -1,31 +0,0 @@
-"use client";
-
-import Link from "next/link";
-import { useTranslation } from "react-i18next";
-
-import { cn } from "@/lib/utils";
-
-type DocsAdminConsoleLinkProps = {
- namespace: "adminDocs" | "integrationDocs";
- className?: string;
-};
-
-export function DocsAdminConsoleLink({
- namespace,
- className,
-}: DocsAdminConsoleLinkProps): React.ReactElement {
- const { t } = useTranslation(namespace);
- const label = t("shell.adminLogin");
-
- return (
-
- {label}
-
- );
-}
diff --git a/src/components/docs/docs-shell.tsx b/src/components/docs/docs-shell.tsx
deleted file mode 100644
index 46d16cb..0000000
--- a/src/components/docs/docs-shell.tsx
+++ /dev/null
@@ -1,63 +0,0 @@
-"use client";
-
-import Link from "next/link";
-import { usePathname } from "next/navigation";
-import { useTranslation } from "react-i18next";
-
-import { AdminLanguageSwitcher } from "@/components/admin/admin-language-switcher";
-import { DocsAdminConsoleLink } from "@/components/docs/docs-admin-console-link";
-import { DocsTopNav } from "@/components/docs/docs-top-nav";
-import { cn } from "@/lib/utils";
-
-type DocsShellProps = {
- children: React.ReactNode;
- className?: string;
-};
-
-export function DocsShell({ children, className }: DocsShellProps): React.ReactElement {
- const pathname = usePathname();
- const isAdminDocs = pathname === "/docs/admin" || pathname.startsWith("/docs/admin/");
- const namespace = isAdminDocs ? "adminDocs" : "integrationDocs";
- const homeHref = isAdminDocs ? "/docs/admin" : "/docs/integration";
- const { t } = useTranslation(namespace);
-
- return (
-