-
Notifications
You must be signed in to change notification settings - Fork 61
/
Copy pathEmptyDashboard.tsx
44 lines (42 loc) · 1.4 KB
/
EmptyDashboard.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*
* Modifications Copyright OpenSearch Contributors. See
* GitHub history for details.
*/
import { EuiEmptyPrompt, EuiLink, EuiIcon, EuiText } from '@elastic/eui';
import React, { Component, Fragment } from 'react';
import { CreateDetectorButtons } from '../../../../components/CreateDetectorButtons/CreateDetectorButtons';
import { BASE_DOCS_LINK } from '../../../../utils/constants';
export class EmptyDashboard extends Component<{}, {}> {
render() {
return (
<EuiEmptyPrompt
data-test-subj="emptyDashboardHeader"
title={<h2>You have no detectors</h2>}
body={
<Fragment>
<EuiText size="s">
<p>Create detector first to detect anomalies in your data.</p>
<p>
Dashboard will generate insights on the anomalies across all of
your detectors.
</p>
<p>
Read about{' '}
<EuiLink href={`${BASE_DOCS_LINK}/ad`} target="_blank">
Get started with Anomaly detection
</EuiLink>{' '}
</p>
</EuiText>
</Fragment>
}
actions={<CreateDetectorButtons />}
/>
);
}
}