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

export type EndData = INodeDataBaseSchema

export const endNode: INodeType = {
	version: ['1'],
	displayName: getNodeDisplayName('end'),
	name: 'end',
	Setter,
	description: getNodeDescription('end'),
	group: 'other',
	icon: 'lucide:unplug',
	iconColor: '#c49600',
	inputs: [NodeConnectionTypes.main],
	outputs: [],
	schema: {
		appAgentId: '',
		parentId: '',
		position: {
			x: 20,
			y: 30
		},
		width: 96,
		height: 96,
		selected: false,
		nodeType: 'end',
		zIndex: 1,
		data: {}
	}
}
