diff --git a/packages/ui/src/components/TabBar.tsx b/packages/ui/src/components/TabBar.tsx index e357960..6618f1b 100644 --- a/packages/ui/src/components/TabBar.tsx +++ b/packages/ui/src/components/TabBar.tsx @@ -5,14 +5,14 @@ import { KIND_LABELS, findNode } from "@opsxapi/core"; import { useState } from "react"; import { useWorkspace } from "../workspaceStore"; import { ContextMenu, cx, type MenuItem } from "./common"; +import { Icon, type IconName } from "./icons"; -const KIND_TAB_ICON: Record = { - http: "", - graphql: "◈", - websocket: "⚡", - sse: "📡", - socketio: "🔌", - mqtt: "📮", +const KIND_TAB_ICON: Record = { + graphql: "hexagon", + websocket: "zap", + sse: "radio", + socketio: "plug-zap", + mqtt: "mailbox", }; export function TabBar() { @@ -77,7 +77,7 @@ export function TabBar() { {node.type === "request" && node.kind === "http" ? ( {node.data.method} ) : node.type === "request" ? ( - {KIND_TAB_ICON[node.kind]} + ) : null} {node.name} {busy && }