statusbar - show current database

This commit is contained in:
Jan Prochazka
2020-04-04 17:33:38 +02:00
parent 92bbf2fa7c
commit 7de37ad7e5
14 changed files with 158 additions and 28 deletions

View File

@@ -0,0 +1,19 @@
import { useSetOpenedTabs } from '../utility/globalState';
import { openNewTab } from '../utility/common';
export default function useNewQuery() {
const setOpenedTabs = useSetOpenedTabs();
return () =>
openNewTab(setOpenedTabs, {
title: 'Query',
icon: 'sql.svg',
tabComponent: 'QueryTab',
// props: {
// schemaName,
// pureName,
// conid,
// database,
// },
});
}