import type { ComponentType } from 'react'; import invariant from 'invariant'; export type NodeTypeProps = { type: string; component: ComponentType; }; // eslint-disable-next-line @typescript-eslint/no-unused-vars function NodeType({ type, component }: NodeTypeProps) { invariant( false, ' elements are for DataFlow configuration only and should not be rendered', ); return null; } NodeType.displayName = 'NodeType'; export default NodeType;