fix: restore node styling, simplify framework for new themes

This commit is contained in:
Gustav
2025-01-09 13:38:03 -05:00
parent f734565844
commit 483ae21e89
20 changed files with 1792 additions and 388 deletions

View File

@@ -0,0 +1,11 @@
// wrapNode.ts
import { NodeProps } from 'reactflow';
import { SolarSystemNodeProps } from '../components/SolarSystemNode';
export function wrapNode<T>(
SolarSystemNode: React.FC<SolarSystemNodeProps<T>>
): React.FC<NodeProps<T>> {
return function NodeAdapter(props) {
return <SolarSystemNode {...props} />;
};
}