import * as React from 'react'; import { PaletteMode } from '@mui/material'; import Box from '@mui/material/Box'; import AppBar from '@mui/material/AppBar'; import Toolbar from '@mui/material/Toolbar'; import Button from '@mui/material/Button'; import Container from '@mui/material/Container'; import Divider from '@mui/material/Divider'; import Typography from '@mui/material/Typography'; import MenuItem from '@mui/material/MenuItem'; import Drawer from '@mui/material/Drawer'; import MenuIcon from '@mui/icons-material/Menu'; import { Logout, OpenInNew } from '@mui/icons-material'; const logoStyle = { width: '140px', height: 'auto', cursor: 'pointer', }; interface AppAppBarProps { user: any; } function AppAppBar({ user }: AppAppBarProps) { const [open, setOpen] = React.useState(false); const toggleDrawer = (newOpen: boolean) => () => { setOpen(newOpen); }; const scrollToSection = (sectionId: string) => { const sectionElement = document.getElementById(sectionId); const offset = 128; if (sectionElement) { const targetScroll = sectionElement.offsetTop - offset; sectionElement.scrollIntoView({ behavior: 'smooth' }); window.scrollTo({ top: targetScroll, behavior: 'smooth', }); setOpen(false); } }; return (