"use client"; import { History, KeyRound } from "lucide-react"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { ConnectAgentDialog } from "@/components/mcp/connect-agent-dialog"; import { PLAYGROUND_PLATFORMS, type PlatformIcon } from "@/lib/playground/catalog"; import { cn } from "@/lib/utils"; interface PlaygroundSidebarProps { workspaceId: number | string; } function PlaygroundNavLink({ href, label, icon: Icon, isActive, indented = false, }: { href: string; label: string; icon?: PlatformIcon; isActive: boolean; indented?: boolean; }) { return ( {Icon ? : null} {label} ); } export function PlaygroundSidebar({ workspaceId }: PlaygroundSidebarProps) { const pathname = usePathname(); const base = `/dashboard/${workspaceId}/playground`; return (
API Playground
{PLAYGROUND_PLATFORMS.map((platform) => (
{platform.label}
{platform.verbs.map((verb) => { const href = `${base}/${platform.id}/${verb.verb}`; return ( ); })}
))}
); }