"use client"; import { Book, ChevronRight, ExternalLink, FileText, Search, } from "lucide-react"; import * as React from "react"; import { Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, } from "@/components/ui/breadcrumb"; import { Collapsible, CollapsibleContent, CollapsibleTrigger, } from "@/components/ui/collapsible"; import { Label } from "@/components/ui/label"; import { ScrollArea } from "@/components/ui/scroll-area"; import { Separator } from "@/components/ui/separator"; import { Sidebar, SidebarContent, SidebarGroup, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuButton, SidebarMenuItem, SidebarProvider, SidebarTrigger, } from "@/components/ui/sidebar"; import { cn } from "@/lib/utils"; // Documentation structure const docsNav = [ { title: "شروع کار", defaultOpen: true, items: [ { title: "مقدمه", href: "#", isActive: true }, { title: "راهاندازی حساب", href: "#" }, { title: "ساختار فضای کاری", href: "#" }, { title: "پیکربندی", href: "#" }, ], }, { title: "مفاهیم اصلی", defaultOpen: true, items: [ { title: "ماژولها", href: "#" }, { title: "سفارشیسازی", href: "#" }, { title: "تم برند", href: "#" }, { title: "حالت تاریک", href: "#" }, { title: "فیلدهای سفارشی", href: "#" }, ], }, { title: "فهرست ماژولها", defaultOpen: false, items: [ { title: "Accordion", href: "#" }, { title: "Alert", href: "#" }, { title: "Avatar", href: "#" }, { title: "Badge", href: "#" }, { title: "Button", href: "#" }, { title: "Card", href: "#" }, { title: "Checkbox", href: "#" }, { title: "Dialog", href: "#" }, { title: "Dropdown Menu", href: "#" }, { title: "Input", href: "#" }, { title: "Select", href: "#" }, { title: "Sidebar", href: "#" }, { title: "Table", href: "#" }, { title: "Tabs", href: "#" }, { title: "Toast", href: "#" }, ], }, { title: "راهنماها", defaultOpen: false, items: [ { title: "دسترسی کاربران", href: "#" }, { title: "فرم لید", href: "#" }, { title: "درونریزی مخاطب", href: "#" }, { title: "مراحل فرصت", href: "#" }, { title: "آزمایش جریان", href: "#" }, { title: "انتشار اتوماسیون", href: "#" }, ], }, { title: "مرجع API", defaultOpen: false, items: [ { title: "CLI", href: "#" }, { title: "پیکربندی", href: "#" }, { title: "ابزارها", href: "#" }, ], }, ]; // On this page - table of contents const tableOfContents = [ { title: "نمای کلی", href: "#overview", level: 1 }, { title: "پیشنیازها", href: "#prerequisites", level: 2 }, { title: "شروع سریع", href: "#quick-start", level: 1 }, { title: "استفاده از API", href: "#using-the-cli", level: 2 }, { title: "راهاندازی دستی", href: "#manual-setup", level: 2 }, { title: "پیکربندی", href: "#configuration", level: 1 }, { title: "گزینههای پایه", href: "#basic-options", level: 2 }, { title: "گزینههای پیشرفته", href: "#advanced-options", level: 2 }, { title: "گامهای بعدی", href: "#next-steps", level: 1 }, ]; const SearchForm = () => { return (
); }; const DocSection = ({ section }: { section: (typeof docsNav)[0] }) => { const [isOpen, setIsOpen] = React.useState(section.defaultOpen); return (