import type { ReactNode } from "react"; import { DocsLayout } from "fumadocs-ui/layouts/docs"; import { RootProvider } from "fumadocs-ui/provider"; import type { LinkItemType } from "fumadocs-ui/layouts/shared"; import { source } from "@/lib/source"; import "./docs.css"; function GithubIcon({ size = 16 }: { size?: number } = {}) { return ( ); } function XIcon() { return ( ); } function DiscordIcon() { return ( ); } const links: LinkItemType[] = [ { type: "icon", label: "X (Twitter)", icon: , text: "X", url: "https://x.com/aoagents", external: true, }, { type: "icon", label: "Discord", icon: , text: "Discord", url: "https://discord.gg/UZv7JjxbwG", external: true, }, ]; async function GitHubStars() { let stars: string | null = null; try { const res = await fetch("https://api.github.com/repos/ComposioHQ/agent-orchestrator", { next: { revalidate: 3600 }, }); if (res.ok) { const data = await res.json(); const count = data.stargazers_count as number; stars = count >= 1000 ? `${(count / 1000).toFixed(1)}K` : String(count); } } catch { /* GitHub API failed — hide stars */ } return stars ? ( {stars} ) : null; } export default function Layout({ children }: { children: ReactNode }) { return ( AO ), }} sidebar={{ defaultOpenLevel: 1, collapsible: true, banner: ( ComposioHQ/agent-orchestrator ), }} > {children} ); }