opened tabs widget

This commit is contained in:
Jan Prochazka
2020-04-13 13:49:00 +02:00
parent 0e395f14ad
commit abb3f6e09c
6 changed files with 112 additions and 44 deletions

View File

@@ -1,9 +1,11 @@
import React from 'react';
import { useCurrentWidget } from '../utility/globalState';
import DatabaseWidget from './DatabaseWidget';
import FilesWidget from './FilesWidget';
export default function WidgetContainer() {
const currentWidget = useCurrentWidget();
if (currentWidget === 'database') return <DatabaseWidget />;
if (currentWidget === 'file') return <FilesWidget />;
return null;
}