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);