import { i18n } from '@kbn/i18n' ; import React from 'react' ; import { useBreadcrumbs } from '../../hooks/use_breadcrumbs' ; import { usePluginContext } from '../../hooks/use_plugin_context' ; import { useTrackPageview } from '../../hooks/use_track_metric' ; import { getNoDataConfig } from '../../utils/no_data_config' ; import './styles.scss' ; export function LandingPage ( ) { useTrackPageview ( { app : 'observability-overview' , path : 'landing' } ) ; useTrackPageview ( { app : 'observability-overview' , path : 'landing' , delay : 15000 } ) ; useBreadcrumbs ( [ { text : i18n . translate ( 'xpack.observability.breadcrumbs.landingLinkText' , { defaultMessage : 'Getting started' , } ) , } , ] ) ; const { core , ObservabilityPageTemplate } = usePluginContext ( ) ; const noDataConfig = getNoDataConfig ( { hasData : false , basePath : core . http . basePath , docsLink : core . docLinks . links . observability . guide , } ) ; return ( < ObservabilityPageTemplate noDataConfig = { noDataConfig } restrictWidth showSolutionNav = { false } / > ) ; }