import { Card, CodeBlock, StatusBadge } from "@shared/components"; import type { Sdk, SdkStatus } from "@portal/api/docs"; import { DocsSection } from "@portal/components/docs/DocsSection"; /** GA clients carry no badge; only non-stable maturity is called out. */ const STATUS_BADGE: Partial< Record > = { beta: { label: "Beta", tone: "info" }, deprecated: { label: "Deprecated", tone: "warning" }, }; export function SdksSection({ sdks }: { sdks: Sdk[] }) { return (
{sdks.map((sdk) => { const badge = STATUS_BADGE[sdk.status]; return (
{sdk.icon}

{sdk.name}

{badge && ( {badge.label} )}
); })}
); }