showModal(ImportExportModal => openImportExportTab

This commit is contained in:
SPRINX0\prochazka
2024-09-16 13:03:49 +02:00
parent d255273368
commit a9a5a3491e
9 changed files with 82 additions and 34 deletions

View File

@@ -1,11 +1,12 @@
import openNewTab from './openNewTab';
export function openImportExportTab(editorProps) {
export function openImportExportTab(editorProps, additionalProps = {}) {
openNewTab(
{
tabComponent: 'ImportExportTab',
title: 'Import/Export',
icon: 'img export',
...additionalProps,
},
{
editor: editorProps,