import React from 'react' ; import { Tab } from '@kui-shell/core' ; const MetricDetailsMode = React . lazy ( ( ) => import ( '../modes/get-metrics' ) ) ; export default function getMetricDetailsMode ( tab ) { return { react : function renderComponent ( ) { return ( < React . Suspense fallback = { < div / > } > < MetricDetailsMode { ... tab } / > < /React.Suspense>); } } ; }