1
1
import React from 'react' ;
2
2
3
- import { Button , Icon , Text } from '@gravity-ui/uikit' ;
4
3
import { useHistory , useLocation } from 'react-router-dom' ;
5
4
6
5
import { parseQuery } from '../../../../../routes' ;
@@ -11,18 +10,13 @@ import {
11
10
TENANT_QUERY_TABS_ID ,
12
11
} from '../../../../../store/reducers/tenant/constants' ;
13
12
import type { KeyValueRow } from '../../../../../types/api/query' ;
14
- import { cn } from '../../../../../utils/cn' ;
15
13
import { useTypedDispatch } from '../../../../../utils/hooks' ;
16
14
import { TenantTabsGroups , getTenantPath } from '../../../TenantPages' ;
17
- import i18n from '../i18n' ;
18
15
import { createQueryInfoItems } from '../utils' ;
19
16
17
+ import { NotFoundContainer } from './NotFoundContainer' ;
20
18
import { QueryDetails } from './QueryDetails' ;
21
19
22
- import CryCatIcon from '../../../../../assets/icons/cry-cat.svg' ;
23
-
24
- const b = cn ( 'kv-top-queries' ) ;
25
-
26
20
interface QueryDetailsDrawerContentProps {
27
21
row : KeyValueRow | null ;
28
22
onClose : ( ) => void ;
@@ -61,18 +55,5 @@ export const QueryDetailsDrawerContent = ({row, onClose}: QueryDetailsDrawerCont
61
55
) ;
62
56
}
63
57
64
- return (
65
- < div className = { b ( 'not-found-container' ) } >
66
- < Icon data = { CryCatIcon } size = { 100 } />
67
- < Text variant = "subheader-2" className = { b ( 'not-found-title' ) } >
68
- { i18n ( 'query-details.not-found.title' ) }
69
- </ Text >
70
- < Text variant = "body-1" color = "complementary" className = { b ( 'not-found-description' ) } >
71
- { i18n ( 'query-details.not-found.description' ) }
72
- </ Text >
73
- < Button size = "m" view = "normal" className = { b ( 'not-found-close' ) } onClick = { onClose } >
74
- { i18n ( 'query-details.close' ) }
75
- </ Button >
76
- </ div >
77
- ) ;
58
+ return < NotFoundContainer onClose = { onClose } /> ;
78
59
} ;
0 commit comments