diff --git a/src/components/molecules/Toobar/Toobar.tsx b/src/components/molecules/Toobar/Toobar.tsx index b6f2f4c..a255cbb 100644 --- a/src/components/molecules/Toobar/Toobar.tsx +++ b/src/components/molecules/Toobar/Toobar.tsx @@ -1,6 +1,21 @@ import React from 'react' import { Link as RouterLink } from 'react-router-dom' -import { AppBar, Button, IconButton, List, ListItem, ListItemButton, Stack, SwipeableDrawer, Toolbar, Typography, styled } from '@mui/material' +import { + AppBar, + Box, + Button, + Divider, + Drawer, + IconButton, + List, + ListItem, + ListItemButton, + ListItemText, + Stack, + Toolbar, + Typography, + styled, +} from '@mui/material' import MenuIcon from '@mui/icons-material/Menu' const AppBarButton = styled(Button)(({ theme }) => ({ @@ -20,67 +35,109 @@ const DrawerButton = styled(ListItemButton)(({ theme }) => ({ }, })) -const CustomToobar = () => { - const [open, setOpen] = React.useState(false) - return ( - (theme.palette.mode === 'dark' ? 'transparent' : undefined), - }}> - - - Michele Tartari - - - - Home - - - Projects - - - Curriculum - - - - setOpen(true)}> - - - setOpen(false)} onOpen={() => setOpen(true)}> - - +type CustomToobarProps = { + drawerWidth?: number +} +const CustomToobar: React.FC = ({ drawerWidth = 240 }) => { + const [mobileOpen, setMobileOpen] = React.useState(false) + + const handleDrawerToggle = () => { + setMobileOpen(prevState => !prevState) + } + + const drawer = ( + + + Michele Tartari + + + + + + + + + {/* Home - - - - Projects - - - - - Curriculum - - - - - Contacts - - - - - - + */} + + + + + + + + + + + + + + + + + + ) + + return ( + <> + (theme.palette.mode === 'dark' ? 'transparent' : undefined), + }}> + + + + + + Michele Tartari + + + + Home + + + Projects + + + Curriculum + + + + + + + ) }