import {Handle, type NodeProps, Position} from '@xyflow/react' import type {Schema} from 'amis' import {Card, Dropdown} from 'antd' import {DeleteFilled, EditFilled} from '@ant-design/icons' import {isEqual} from 'licia' export type AmisNodeType = 'normal' | 'start' | 'end' const AmisNode = ( props: NodeProps, type: AmisNodeType, name: String, description?: String, columnSchema?: Schema[], ) => { const {id, data} = props const {getDataById, removeNode, editNode} = data return (