import { NodeConnectionTypes, type INodeType } from '../Interface'

export const codeNode: INodeType = {
	version: ['1'],
	displayName: '代码',
	name: 'code',
	description: '通过代码处理数据',
	group: '业务逻辑',
	icon: 'lucide:code',
	iconColor: '#f9c74f',
	inputs: [NodeConnectionTypes.main],
	outputs: [NodeConnectionTypes.main],
	// 业务数据
	schema: {
		appAgentId: '',
		parentId: '',
		position: {
			x: 20,
			y: 30
		},
		width: 96,
		height: 96,
		selected: false,
		nodeType: 'code',
		zIndex: 1,
		data: {
			// 代码配置数据
		}
	},
	// 节点渲染
	render(data) {
		return <div></div>
	}
}
