r-flow / src /nodes /PromptNode.tsx
ruv's picture
Create PromptNode.tsx
0ffa6d4 verified
raw
history blame contribute delete
354 Bytes
import React from 'react';
import { Handle, Position } from 'reactflow';
export function PromptNode({ data }) {
return (
<>
<Handle type="target" position={Position.Top} />
<div>
<strong>{data.label}</strong>
<div>{data.prompt}</div>
</div>
<Handle type="source" position={Position.Bottom} />
</>
);
}