🚚 Improve component organization

This commit is contained in:
Philipp Stracker 2025-01-10 13:57:53 +01:00
parent 9cd09c8dfa
commit db7e5e0dae
No known key found for this signature in database
7 changed files with 34 additions and 41 deletions

View file

@ -43,9 +43,7 @@ const TabNavigation = ( { tabs } ) => {
onSelect={ updateActivePanel }
tabs={ tabs }
>
{ ( tab ) => {
return tab.component || <>{ tab.title ?? tab.name }</>;
} }
{ ( { Component } ) => Component }
</TabPanel>
);
};