import { memo } from 'react'; import { NodeProps } from 'reactflow'; import { BaseNode } from './BaseNode'; import { SurrogateNodeData } from '../../../lib/canvas/schema'; function SurrogateNodeComponent(props: NodeProps) { const { data } = props; return ( 🚀} color="text-pink-600" colorBg="bg-pink-50" outputs={0}>
{data.enabled ? 'Enabled' : 'Disabled'}
{data.enabled && data.modelType && (
{data.modelType}
)}
); } export const SurrogateNode = memo(SurrogateNodeComponent);