"use client"; import Link from "next/link"; import { useMemo, useState } from "react"; import { usePathname } from "next/navigation"; import clsx from "clsx"; import styles from "./DocsLayout.module.css"; import { DocsLocale, DocsPage, DocsPageContent, } from "@/content/docs/docs"; import { DOCS_GROUPS } from "@/content/docs/docs.config"; import { DOCS_PAGES } from "@/content/docs/docs"; import { useI18n } from "@/hooks/useI18n"; function DocsHeader() { const { locale, setLocale } = useI18n(); return (
PolyWeather {locale === "zh-CN" ? "产品文档中心" : "Product Documentation"}
{locale === "zh-CN" ? "返回主站" : "Back to App"}
); } function DocsSidebar({ currentSlug, locale, open, onClose, }: { currentSlug: string; locale: DocsLocale; open: boolean; onClose: () => void; }) { return ( <> {open &&

{localizedPage.title}

{localizedPage.description}

{localizedPage.sections.map((section) => (

{section.title}

{section.blocks.map((block, index) => ( ))}
))} ); }