import React from 'react' ; import { Tab } from '@kui-shell/core' ; const ExprBase = React . lazy ( ( ) => import ( '../modes/exprForm' ) ) ; const DecisionBase = React . lazy ( ( ) => import ( '../modes/decisionForm' ) ) ; export function renderForm ( tab ) { return { react : function renderComponent ( ) { return ( < React . Suspense fallback = { < div / > } > < ExprBase { ... tab } / > < /React.Suspense>); } } ; } export function renderDecisionTab ( tab ) { return { react : function renderComponent ( ) { return ( < React . Suspense fallback = { < div / > } > < DecisionBase { ... tab } / > < /React.Suspense>); } } ; }