darabos's picture
Add node-level error boundary.
cedd3c4
raw
history blame
335 Bytes
import LynxKiteNode from "./LynxKiteNode";
import { NodeWithParams } from "./NodeWithParams";
const NodeWithImage = (props: any) => {
return (
<NodeWithParams {...props}>
{props.data.display && <img src={props.data.display} alt="Node Display" />}
</NodeWithParams>
);
};
export default LynxKiteNode(NodeWithImage);