import { memo } from 'react';
import { NodeProps } from 'reactflow';
import { BaseNode } from './BaseNode';
import { SolverNodeData } from '../../../lib/canvas/schema';

function SolverNodeComponent(props: NodeProps<SolverNodeData>) {
  const { data } = props;
  return (
    <BaseNode {...props} icon={<span>⚙️</span>} color="text-purple-600">
      {data.solverType && <div>{data.solverType}</div>}
    </BaseNode>
  );
}
export const SolverNode = memo(SolverNodeComponent);
