Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

Layout.tsx 477B

1234567891011121314151617181920212223
  1. import { Box } from '@mui/material';
  2. import React from 'react';
  3. import Footer from '../footer/Footer';
  4. import MainNav from '../navbar/MainNav';
  5. type LayoutProps = {
  6. children: JSX.Element | JSX.Element[]
  7. }
  8. const Layout: React.FC<LayoutProps> = ({ children }) => {
  9. return (
  10. <>
  11. <Box sx={{ width: '100%' }}>
  12. {/* <Navbar /> */}
  13. <MainNav />
  14. <main>{children}</main>
  15. <Footer></Footer>
  16. </Box>
  17. </>
  18. );
  19. }
  20. export default Layout;