black bar simulete side-bar added and prompt node created, need to try drag and drop

This commit is contained in:
anovazzi1 2023-02-09 13:02:01 -03:00
commit 7f1685e767
8 changed files with 105 additions and 7 deletions

View file

@ -0,0 +1,15 @@
import { Handle, Position } from 'reactflow';
export default function PromptNode({data}){
console.log(data.template)
return(
<div
className='prompt-Node relative bg-white h-16 w-40 border rounded-sm solid border-black flex flex-col justify-center'>
<Handle type='target' position={Position.Left}></Handle>
<label className='absolute text-sm -top-3 left-1 bg-white w-14 text-center'> Prompt</label>
<div className='w-full h-10 truncate bg-slate-50 text-xs'> {data.template}</div>
<Handle type='source' position={Position.Right}></Handle>
</div>
)
}