import React , { lazy } from 'react' ; import type { Adapters } from 'src/plugins/inspector/public' ; import { i18n } from '@kbn/i18n' ; import { LazyWrapper } from '../lazy_wrapper' ; const getLazyComponent = ( ) => { return lazy ( ( ) => import ( './map_view_component' ) ) ; } ; export const MapInspectorView = { title : i18n . translate ( 'xpack.maps.inspector.mapDetailsViewTitle' , { defaultMessage : 'Map details' , } ) , order : 30 , help : i18n . translate ( 'xpack.maps.inspector.mapDetailsViewHelpText' , { defaultMessage : 'View the map state' , } ) , shouldShow ( adapters ) { return Boolean ( adapters . map ) ; } , component : ( props ) => { return < LazyWrapper getLazyComponent = { getLazyComponent } lazyComponentProps = { props } / > ; } , } ;