"use client"; import { Handle, Position, type NodeProps, type Node } from "@xyflow/react"; import type { CategoryBandLayout } from "./types"; export type CategoryBandData = { band: CategoryBandLayout; techCount: number; }; export type CategoryBandNode = Node; /** * Full-height column band behind a category's technologies. Non-interactive: * it is a backdrop, not a node (no handles, no dragging, no selection). */ export function CategoryBand({ data }: NodeProps) { const { band, techCount } = data; const accent = band.color ?? "#22d3ee"; return (
{band.label} {band.position !== null ? `POS ${band.position}` : "AUTO"} ยท {techCount} TECH {techCount === 1 ? "" : "S"}
TIER BAND // {band.label.toUpperCase()}
{/* Inert handles so React Flow never treats the band as connectable */}
); }