11import React from 'react' ;
22
3- import { Button , Icon , Text } from '@gravity-ui/uikit' ;
43import { useHistory , useLocation } from 'react-router-dom' ;
54
65import { parseQuery } from '../../../../../routes' ;
@@ -11,18 +10,13 @@ import {
1110 TENANT_QUERY_TABS_ID ,
1211} from '../../../../../store/reducers/tenant/constants' ;
1312import type { KeyValueRow } from '../../../../../types/api/query' ;
14- import { cn } from '../../../../../utils/cn' ;
1513import { useTypedDispatch } from '../../../../../utils/hooks' ;
1614import { TenantTabsGroups , getTenantPath } from '../../../TenantPages' ;
17- import i18n from '../i18n' ;
1815import { createQueryInfoItems } from '../utils' ;
1916
17+ import { NotFoundContainer } from './NotFoundContainer' ;
2018import { QueryDetails } from './QueryDetails' ;
2119
22- import CryCatIcon from '../../../../../assets/icons/cry-cat.svg' ;
23-
24- const b = cn ( 'kv-top-queries' ) ;
25-
2620interface QueryDetailsDrawerContentProps {
2721 row : KeyValueRow | null ;
2822 onClose : ( ) => void ;
@@ -61,18 +55,5 @@ export const QueryDetailsDrawerContent = ({row, onClose}: QueryDetailsDrawerCont
6155 ) ;
6256 }
6357
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 } /> ;
7859} ;
0 commit comments