
import styles from './layout.module.scss';

export function Layout({
                         showHeaders = true,
                         showFooter = true,
                         menuHeader = [],
                         menuFooter = [],
                         children = null,
                         className = '',
                         headerTransparent = false
                       }) {

  const renderHeaders = () => {
    if (showHeaders) {
      return (<p>header </p>)
    } else {
      return ('');
    }
  }
  const renderFooters = () => {
    if (showFooter) {
      return (<p>footer </p>)
    } else {
      return ('');
    }
  }

  return (
    <>
      {renderHeaders()}
      <div
        className={'dark:bg-gray-900 bg-gray-50 ' + styles['app-container'] + ' ' + (showHeaders ? '' : styles['without-headers']) + ' ' + (showFooter ? '' : styles['without-footer']) + ' ' + className}>
        <div className={styles['app-content'] + " w-full mx-auto"}>
          {children}
        </div>
        {renderFooters()}
      </div>
    </>
  );
}

export default Layout;
