import { i18n } from '@osd/i18n' ; import { RequestsViewComponent } from './components/requests_view' ; import { InspectorViewDescription } from '../../types' ; import { Adapters } from '../../../common' ; export const getRequestsViewDescription = ( ) : InspectorViewDescription => ( { title : i18n . translate ( 'inspector.requests.requestsTitle' , { defaultMessage : 'Requests' , } ) , order : 20 , help : i18n . translate ( 'inspector.requests.requestsDescriptionTooltip' , { defaultMessage : 'View the requests that collected the data' , } ) , shouldShow ( adapters ) { return Boolean ( adapters . requests ) ; } , component : RequestsViewComponent , } ) ;