"use client"; /** * TASK-0133 — the workspace picker for the two WORKSPACE-scoped console tabs * (API keys / webhooks). The org-admin API is org-scoped, but API keys and * webhooks are per-workspace, so these tabs operate on the selected * workspace. Controlled by the console page (one source of truth shared by * both tabs). */ import { Boxes } from "lucide-react"; import type { OrgWorkspaceRow } from "@/lib/org-admin"; interface WorkspacePickerProps { orgId: string; workspaces: OrgWorkspaceRow[]; value: string | null; onChange: (id: string) => void; } export function WorkspacePicker({ workspaces, value, onChange }: WorkspacePickerProps) { if (workspaces.length === 0) { return (