/** * App Layout - Magical Shop Builder style layout. * * Top header bar: plugin icon + name + version + doc/support links. * Below: optional internal sidebar (for modules) + main content. */ import { __ } from '@wordpress/i18n'; import { Icon } from '@aime/wp-components'; import { megaphone } from '@wordpress/icons'; import ErrorBoundary from '../common/ErrorBoundary'; import ToastContainer from '../common/Toast'; const AppLayout = ( { children, sidebar, subHeading, module } ) => { const { version } = window.aimeData || {}; return (
{ /* Top header bar */ }
{ __( 'AI Marketing Expert', 'ai-marketing-expert' ) } v{ version || '1.0.0' } { subHeading && ( { subHeading } ) }
{ __( 'Video Tutorial', 'ai-marketing-expert' ) } { __( 'Documentation', 'ai-marketing-expert' ) } { __( 'Support', 'ai-marketing-expert' ) }
{ /* Body: sidebar + content */ }
{ sidebar && ( ) }
{ children }
{ /* Footer info */ }
); }; export default AppLayout;