import React from 'react';
import { Box } from '@mui/material';
import { Outlet } from 'react-router-dom';
import AppNavigation from 'components/appNavigation';
import PageBackground from 'components/pageBackground/pageBackground';

function MainLayout() {
  return (
    <Box
      className="ntq-main-layout"
      sx={{
        minHeight: '100vh',
        display: 'flex',
        flexDirection: 'column',
        position: 'relative',
      }}
    >
      <AppNavigation />
      <PageBackground />
      <Box
        component="main"
        className="ntq-content-inner"
        sx={{ flex: 1, position: 'relative', zIndex: 1 }}
      >
        <Outlet />
      </Box>
    </Box>
  );
}

export default MainLayout;
