tabs tools

This commit is contained in:
Jan Prochazka
2021-03-07 07:57:17 +01:00
parent 3dd99a44cb
commit 2eebe44f87
6 changed files with 89 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
<script context="module" lang="ts">
function createTabComponent(selectedTab) {
const tabComponent = tabs[selectedTab.tabComponent];
const tabComponent = tabs[selectedTab.tabComponent]?.default;
if (tabComponent) {
return {
tabComponent,