/**
* WordPress dependencies
*/
import { __ } from '@wordpress/i18n';
/**
* SolidWP dependencies
*/
import { Heading, Text, TextSize } from '@ithemes/ui';
/**
* Internal dependencies
*/
import Header from '../header';
import { Navigation, SolidwpMailRoot, StyledNavLink } from './styles';
/** @typedef {import('React').ReactNode} ReactNode */
/**
* Main layout component for the SolidWP Mail plugin.
*
* @param {Object} props - The component props.
* @param {ReactNode} props.children - The children components to render within the layout.
* @param {string} [props.headerText=''] - The text to display in the header.
* @param {boolean} [props.withNav=true] - Whether to display the navigation.
*/
const MainLayout = ( { children, headerText = '', withNav = true } ) => {
return (
<>
{ headerText }
{ withNav && (
{ __( 'Connections', 'LION' ) }
{ __( 'Email Test', 'LION' ) }
) }
{ children }
>
);
};
export default MainLayout;