diff --git a/src/components/admin/narrative-flow/NodeHandles.tsx b/src/components/admin/narrative-flow/NodeHandles.tsx index 8fe699e..afbc823 100644 --- a/src/components/admin/narrative-flow/NodeHandles.tsx +++ b/src/components/admin/narrative-flow/NodeHandles.tsx @@ -5,7 +5,7 @@ import { NODE_SOCKETS } from "./types"; interface NodeHandlesProps { nodeType: string; - dynamicOutputs?: Array<{ id: string; label: string }>; + dynamicOutputs?: Array<{ id: string }>; } export function NodeHandles({ nodeType, dynamicOutputs }: NodeHandlesProps) { @@ -28,7 +28,6 @@ export function NodeHandles({ nodeType, dynamicOutputs }: NodeHandlesProps) { key={socket.id} id={socket.id} socketType={socket.type} - label={socket.label} isInput={true} style={{ top: `${topPercent}%` }} /> @@ -41,7 +40,6 @@ export function NodeHandles({ nodeType, dynamicOutputs }: NodeHandlesProps) { key={socket.id} id={socket.id} socketType={socket.type} - label={socket.label} isInput={false} style={{ top: `${topPercent}%` }} /> diff --git a/src/components/admin/narrative-flow/TypedHandle.tsx b/src/components/admin/narrative-flow/TypedHandle.tsx index 8a3d602..1741081 100644 --- a/src/components/admin/narrative-flow/TypedHandle.tsx +++ b/src/components/admin/narrative-flow/TypedHandle.tsx @@ -1,59 +1,32 @@ "use client"; -import { Handle, Position, type HandleProps } from "@xyflow/react"; +import { Handle, Position } from "@xyflow/react"; import { SOCKET_COLORS, type SocketType } from "./types"; interface TypedHandleProps { id: string; socketType: SocketType; - label?: string; isInput: boolean; style?: React.CSSProperties; } -export function TypedHandle({ - id, - socketType, - label, - isInput, - style, -}: TypedHandleProps) { +export function TypedHandle({ id, socketType, isInput, style }: TypedHandleProps) { const color = SOCKET_COLORS[socketType]; const isFlow = socketType === "flow"; return ( -
- - {label && ( - - {label} - - )} -
+ /> ); }