Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
import { DocsLayout } from 'fumadocs-ui/layouts/docs';
import type { ReactNode } from 'react';
import { buildSidebarNavIndex } from './sidebar-nav-index';
import { SidebarAnalytics } from '@/components/sidebar-analytics';
type Source = typeof import('./source').examplesSource;
export function createDocsLayout(source: Source) {
const navIndex = buildSidebarNavIndex(source.pageTree);
return function Layout({ children }: { children: ReactNode }) {
return (
<DocsLayout
tree={source.pageTree}
nav={{ enabled: true, title: null }}
searchToggle={{ enabled: false }}
sidebar={{ collapsible: false, footer: null, tabs: false }}
themeSwitch={{ enabled: false }}
>
<SidebarAnalytics index={navIndex} />
{children}
</DocsLayout>
);
};
}