@@ -27,6 +27,7 @@ import { toggleSetupMode } from '../../lib/setup_mode';
2727import { CheckingSettings } from './checking_settings' ;
2828import { ReasonFound , WeTried } from './reasons' ;
2929import { CheckerErrors } from './checker_errors' ;
30+ import { WhatIs , CloudDeployment } from './blurbs' ;
3031import { getSafeForExternalLink } from '../../lib/get_safe_for_external_link' ;
3132
3233function NoDataMessage ( props ) {
@@ -45,14 +46,43 @@ function NoDataMessage(props) {
4546
4647export function NoData ( props ) {
4748 const [ isLoading , setIsLoading ] = useState ( false ) ;
48- const [ useInternalCollection , setUseInternalCollection ] = useState ( props . isCloudEnabled ) ;
49+ const [ useInternalCollection , setUseInternalCollection ] = useState ( false ) ;
50+ const isCloudEnabled = props . isCloudEnabled ;
4951
5052 async function startSetup ( ) {
5153 setIsLoading ( true ) ;
5254 await toggleSetupMode ( true ) ;
5355 window . location . hash = getSafeForExternalLink ( '#/elasticsearch/nodes' ) ;
5456 }
5557
58+ if ( isCloudEnabled ) {
59+ return (
60+ < EuiPage >
61+ < EuiScreenReaderOnly >
62+ < h1 >
63+ < FormattedMessage
64+ id = "xpack.monitoring.noData.cloud.heading"
65+ defaultMessage = "No monitoring data found."
66+ />
67+ </ h1 >
68+ </ EuiScreenReaderOnly >
69+ < EuiPageBody restrictWidth = { 600 } >
70+ < EuiPageContent
71+ verticalPosition = "center"
72+ horizontalPosition = "center"
73+ className = "eui-textCenter"
74+ >
75+ < EuiIcon type = "monitoringApp" size = "xxl" />
76+ < EuiSpacer size = "m" />
77+ < WhatIs />
78+ < EuiHorizontalRule size = "half" />
79+ < CloudDeployment />
80+ </ EuiPageContent >
81+ </ EuiPageBody >
82+ </ EuiPage >
83+ ) ;
84+ }
85+
5686 if ( useInternalCollection ) {
5787 return (
5888 < EuiPage >
0 commit comments