"use client"; import { memo } from "react"; import { NodeProps } from "reactflow"; import { Globe } from "lucide-react"; import { CompactNodeShell } from "./CompactNodeShell"; import type { RestAPISourceNodeData } from "@/types/node-editor"; export const RestAPISourceNode = memo(({ data, selected }: NodeProps) => { const method = data.method || "GET"; const summary = data.url ? `${method} ${data.url}` : "API URL을 입력해 주세요"; return ( } selected={selected} hasInput={false} > {data.url && (
{method} {data.url}
)}
); }); RestAPISourceNode.displayName = "RestAPISourceNode";