import type { FC } from 'react' import React from 'react' import type { ToolNodeType } from './types' import type { NodeProps } from '@/app/components/workflow/types' const Node: FC> = ({ data, }) => { const { tool_configurations } = data const toolConfigs = Object.keys(tool_configurations || {}) if (!toolConfigs.length) return null return (
{toolConfigs.map((key, index) => (
{key}
{tool_configurations[key]}
))}
) } export default React.memo(Node)