'use client';

import { Box } from '@mui/material';
import BottomNavigation from '@/shared/ui/BottomNavigation';
import { AuthGuard } from '@/features/auth';

export default function MainLayout({ children }: { children: React.ReactNode }) {
  return (
    <AuthGuard>
      <Box sx={{ pb: { xs: 7, sm: 8 }, pt: { xs: 7, sm: 8 } }}>
        {children}
        <BottomNavigation />
      </Box>
    </AuthGuard>
  );
}
