/** * One Single Product tab, mounted on its own — the Customizer host gives * each a real native section of its own * (`aureon_woocommerce_product_{key}`), reached from Single Product's own * row for it (see `onNavigateTab` in `index.tsx`). Same fields, same store * as the hub's own inline `TabPanel` for this key — only the navigation * differs. */ import type { WorkingSettings, SetPath, SectionExtra } from '../../../types'; import type { WooSchema, Option } from '../types'; import { PRODUCT_TABS } from '../constants'; import { SummaryFields, LayoutFields, CartButtonFields, RelatedFields, } from './fields'; interface ProductTabSectionProps { schema: WooSchema; layoutSchema?: { sidebars?: Option[] }; working: WorkingSettings; setPath: SetPath; extras?: SectionExtra[]; tabKey: string; } export default function ProductTabSection( { schema, layoutSchema, working, setPath, extras, tabKey, }: ProductTabSectionProps ) { const tabMeta = PRODUCT_TABS.find( ( tab ) => tab.key === tabKey ); return (

{ tabMeta?.label ?? tabKey }

{ 'summary' === tabKey && ( ) } { 'layout' === tabKey && ( ) } { 'cart_button' === tabKey && ( ) } { 'related' === tabKey && ( ) }
); }