File size: 354 Bytes
0ffa6d4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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} />
    </>
  );
}