Skip to content
Snippets Groups Projects
Commit d8c2a851 authored by ali asaria's avatar ali asaria
Browse files

placeholder for change template

parent 6fec665f
No related branches found
No related tags found
No related merge requests found
import { Typography } from '@mui/joy';
import { Select, Typography, Option } from '@mui/joy';
import { BuiltInNode, Handle, useReactFlow } from '@xyflow/react';
import { NodeProps, Position } from '@xyflow/system';
import { XIcon } from 'lucide-react';
......@@ -59,10 +59,32 @@ export default function memo({
/>
<div
className="custom-node-content"
style={{ overflow: 'hidden', padding: '5px' }}
style={{
overflow: 'hidden',
padding: '5px',
width: '100%',
display: 'flex',
flexDirection: 'column',
gap: '5px',
alignItems: 'center',
justifyContent: 'center',
}}
>
<Typography level="title-md">{data?.label}</Typography>
<Typography level="body-sm">{data?.template}</Typography>
{/* // implement this later: it allows you to change a template
<Select
value={data?.template}
size="sm"
variant="plain"
sx={{ minHeight: 'unset' }}
>
<Option value={data?.template}>{data?.template}</Option>
<Option value="dog">Dog</Option>
<Option value="cat">Cat</Option>
<Option value="fish">Fish</Option>
<Option value="bird">Bird</Option>
</Select> */}
{/* {JSON.stringify(data, null, 2)} */}
</div>
<Handle
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment