/
vshmidt
/
cloudbeaver
Обзор
Документация
Войти
/
vshmidt
/
cloudbeaver
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
devel
webapp/packages/plugin-object-viewer/src/ObjectPropertiesPage/NavNodeView/NavNodeMetadata/NavNodeMetadataTab.tsx
31 строка
1014 B
sergeyteleshev
6056-cb-impelement-ui-kit-select-in-combobox (#3557)
29 июл 2025, 14:52
Не верифицирован
29 июл 2025, 14:52
231da5b
Код
Авторство
О чём код?
/* * CloudBeaver - Cloud Database Manager * Copyright (C) 2020-2025 DBeaver Corp and others * * Licensed under the Apache License, Version 2.0. * you may not use this file except in compliance with the License. */ import { observer } from 'mobx-react-lite'; import { useTranslate } from '@cloudbeaver/core-blocks'; import { TabIcon, Tab, TabTitle } from '@cloudbeaver/core-ui'; import { type NavNodeTransformViewComponent, useNode } from '@cloudbeaver/plugin-navigation-tree'; export const NavNodeMetadataTab: NavNodeTransformViewComponent = observer(function NavNodeMetadataTab({ folderId, nodeId }) { const translate = useTranslate(); const nodeInfo = useNode(nodeId); const title = translate('plugin_object_viewer_object_info_tab'); if (!nodeInfo.node) { return null; } const icon = 'platform:/plugin/org.jkiss.dbeaver.model/icons/tree/info.svg'; return ( <Tab tabId={folderId} title={title}> <TabIcon icon={icon} /> <TabTitle>{title}</TabTitle> </Tab> ); });