2026-01-14 20:00:35 -05:00
|
|
|
|
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 (
|
2026-01-14 20:30:28 -05:00
|
|
|
|
<BaseNode {...props} icon={<span>⚙️</span>} color="text-purple-600" colorBg="bg-purple-50">
|
2026-01-14 20:00:35 -05:00
|
|
|
|
{data.solverType && <div>{data.solverType}</div>}
|
|
|
|
|
|
</BaseNode>
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|
|
|
|
|
|
export const SolverNode = memo(SolverNodeComponent);
|