import React, { PureComponent } from 'react'; import { CanvasElementItem, CanvasElementProps } from '../element'; interface NotFoundConfig { orig?: any; } class NotFoundDisplay extends PureComponent> { render() { const { config } = this.props; return (

NOT FOUND:

{JSON.stringify(config, null, 2)}
); } } export const notFoundItem: CanvasElementItem = { id: 'not-found', name: 'Not found', description: 'Display when element type is not found in the registry', display: NotFoundDisplay, defaultSize: { width: 100, height: 100, }, getNewOptions: () => ({ config: {}, }), };