mirror of
https://github.com/wanderer-industries/wanderer
synced 2025-12-01 21:42:37 +00:00
12 lines
324 B
TypeScript
12 lines
324 B
TypeScript
// 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} />;
|
|
};
|
|
}
|