import { useTheme } from '@/components/theme-provider'; import { IIterationNode, IIterationStartNode, } from '@/interfaces/database/flow'; import { cn } from '@/lib/utils'; import { Handle, NodeProps, NodeResizeControl, Position } from '@xyflow/react'; import { ListRestart } from 'lucide-react'; import { LeftHandleStyle, RightHandleStyle } from './handle-icon'; import styles from './index.less'; import NodeHeader from './node-header'; function ResizeIcon() { return ( ); } const controlStyle = { background: 'transparent', border: 'none', cursor: 'nwse-resize', }; export function IterationNode({ id, data, isConnectable = true, selected, }: NodeProps) { const { theme } = useTheme(); return (
); } export function IterationStartNode({ isConnectable = true, selected, }: NodeProps) { const { theme } = useTheme(); return (
); }