import { NodeConnectionTypes, type INodeType, type INodeDataBaseSchema } from '../../Interface'
import { getNodeDescription, getNodeDisplayName } from '@/nodes/i18n'

export type EndData = INodeDataBaseSchema

export const loopEndNode: INodeType = {
	version: ['1'],
	displayName: getNodeDisplayName('loop-end'),
	name: 'loop-end',
	description: getNodeDescription('loop-end'),
	group: 'logic',
	icon: 'lucide:rotate-ccw',
	iconColor: '#f79009',
	inputs: [NodeConnectionTypes.main],
	outputs: [],
	schema: {
		appAgentId: '',
		parentId: '',
		position: {
			x: 20,
			y: 30
		},
		width: 96,
		height: 96,
		selected: false,
		nodeType: 'loop-end',
		zIndex: 1,
		data: {}
	}
}
