import React from 'react' ; import { APP_SEARCH_PLUGIN } from '../../../../../common/constants' ; import { SetAppSearchChrome } from '../../../shared/kibana_chrome' ; import { EnterpriseSearchPageTemplate , PageTemplateProps } from '../../../shared/layout' ; import { SendAppSearchTelemetry } from '../../../shared/telemetry' ; import { useAppSearchNav } from './nav' ; export const AppSearchPageTemplate = ( { children , pageChrome , pageViewTelemetry , ... pageTemplateProps } ) => { return ( < EnterpriseSearchPageTemplate { ... pageTemplateProps } solutionNav = { { name : APP_SEARCH_PLUGIN . NAME , items : useAppSearchNav ( ) , } } setPageChrome = { pageChrome && < SetAppSearchChrome trail = { pageChrome } />}> { pageViewTelemetry && < SendAppSearchTelemetry action = "viewed" metric = { pageViewTelemetry } / > } { children } < /EnterpriseSearchPageTemplate>); } ;