From f10fa062e947bf48b7c97fa484f4e5f2318c2a9f Mon Sep 17 00:00:00 2001 From: gahusb Date: Wed, 13 May 2026 21:43:25 +0900 Subject: [PATCH] feat(screener): FixedNodeCard for data/combine/result nodes --- .../components/canvas/nodes/FixedNodeCard.jsx | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/pages/stock/screener/components/canvas/nodes/FixedNodeCard.jsx diff --git a/src/pages/stock/screener/components/canvas/nodes/FixedNodeCard.jsx b/src/pages/stock/screener/components/canvas/nodes/FixedNodeCard.jsx new file mode 100644 index 0000000..a996c08 --- /dev/null +++ b/src/pages/stock/screener/components/canvas/nodes/FixedNodeCard.jsx @@ -0,0 +1,22 @@ +import React, { memo } from 'react'; +import { Handle, Position } from '@xyflow/react'; + +function FixedNodeCard({ data }) { + const { icon, title, subtitle, kind } = data; + const hasInput = kind !== 'data'; + const hasOutput = kind !== 'result'; + + return ( +
+ {hasInput && } +
+ {icon} + {title} +
+ {subtitle &&
{subtitle}
} + {hasOutput && } +
+ ); +} + +export default memo(FixedNodeCard);