import React from 'react' export default function Node({ node, isSelected, color, onSelect, onEdit, onDelete, onAddConnection, onDragStart }) { const getModelIcon = (model) => { if (model?.includes('claude')) return '🧠' if (model?.includes('gemini')) return '💎' if (model?.includes('gpt')) return '🤖' if (model?.includes('llama')) return '🦙' return '⚡' } return (
{ e.stopPropagation() onSelect() > {/* Header */}
{node.type === 'ceo' ? '👑' : getModelIcon(node.model)}

{node.name}

{node.model}

{node.type === 'ceo' && ( CEO )}
{/* Body */}

{node.brief || 'No brief set'}

{node.apiKey ? 'API Key Set' : 'No API Key'}
{/* Actions */}
{node.type !== 'ceo' && ( )}
{/* Connection Points */}
) }