"use client"; // — framework-aware code-block tabs for AgentCore // quickstart commands. Built on top of Fumadocs's (via the // shell-docs / wrapper) and , so AgentCore // commands share the same Shiki-highlighted chrome and copy button as // every other code block in the docs. // // Usage in MDX: // // // With no `framework` prop the component shows both LangGraph and Strands // tabs (the canonical shell-docs page lets the user pick). Passing // `framework="langgraph"` or `framework="strands"` collapses to a single // tab; we keep that prop for parity with the upstream API even though // the canonical shell-docs page doesn't use it. import React from "react"; import { Tabs, Tab } from "@/components/docs-tabs"; import { DynamicCodeBlock } from "fumadocs-ui/components/dynamic-codeblock"; interface AgentCoreCommandTabsProps { framework?: "langgraph" | "strands"; lgCommand: string; stCommand: string; } export function AgentCoreCommandTabs({ framework, lgCommand, stCommand, }: AgentCoreCommandTabsProps) { const items = framework === "langgraph" ? ["LangGraph"] : framework === "strands" ? ["Strands"] : ["LangGraph", "Strands"]; return ( {(framework === "langgraph" || !framework) && ( )} {(framework === "strands" || !framework) && ( )} ); }