import React from 'react'; import { useNavigate } from 'react-router-dom'; import { AppBar, Box, Container, CssBaseline, Toolbar, Typography, Button, ThemeProvider, createTheme } from '@mui/material'; import VideoIcon from '@mui/icons-material/VideoLibrary'; import AddIcon from '@mui/icons-material/Add'; import DescriptionIcon from '@mui/icons-material/Description'; interface LayoutProps { children: React.ReactNode; } const theme = createTheme({ palette: { mode: 'dark', primary: { main: '#0a192f', // Dark tech blue }, secondary: { main: '#64ffda', // Tech accent }, background: { default: '#020c1b', paper: '#112240', }, }, typography: { fontFamily: '"Inter", "Roboto", "Helvetica", "Arial", sans-serif', h6: { fontFamily: '"Outfit", sans-serif', }, h4: { fontFamily: '"Outfit", sans-serif', fontWeight: 600, }, h5: { fontFamily: '"Outfit", sans-serif', fontWeight: 500, }, button: { fontFamily: '"Outfit", sans-serif', fontWeight: 600, } }, components: { MuiButton: { styleOverrides: { root: { borderRadius: 8, textTransform: 'none', }, }, }, MuiPaper: { styleOverrides: { root: { borderRadius: 12, backgroundImage: 'none', }, }, }, }, }); const Layout: React.FC = ({ children }) => { const navigate = useNavigate(); return ( navigate('/')} > EG AUTONOMOUS {children} EG AUTONOMOUS © {new Date().getFullYear()} ); }; export default Layout;