import Divider from '@mui/material/Divider'; import Paper from '@mui/material/Paper'; import MenuList from '@mui/material/MenuList'; import MenuItem from '@mui/material/MenuItem'; import ListItemText from '@mui/material/ListItemText'; import ListItemIcon from '@mui/material/ListItemIcon'; import BookmarkBorderIcon from '@mui/icons-material/BookmarkBorder'; import ArchiveIcon from '@mui/icons-material/Archive'; import PermContactCalendarIcon from '@mui/icons-material/PermContactCalendar'; import SettingsIcon from '@mui/icons-material/Settings'; import Brightness3Icon from '@mui/icons-material/Brightness3'; import AnimationIcon from '@mui/icons-material/Animation'; import HelpOutlineIcon from '@mui/icons-material/HelpOutline'; import BugReportIcon from '@mui/icons-material/BugReport'; import Switch from '@mui/material/Switch'; import { makeStyles } from '@material-ui/core' import Modal from '../../../reusableComponents/Modal' import { ChangeEvent } from 'react'; const useStyles = makeStyles({ container: { position: 'absolute', width: 270, maxWidth: '100%', top: 60, left: 15, zIndex: 10, visibility: 'visible', }, list: { background:'#fdfdfd' }, listItemLast: { textAlign: 'center', }, listIcon: { marginRight: 15, }, listIconText: { marginRight: 15, paddingLeft:6 } }) const label = { inputProps: { 'aria-label': 'Switch demo' } }; interface IContactsList { handleSelectedMenu: (i:number) => void } const MenuBar = ({handleSelectedMenu}:IContactsList) => { const classes = useStyles() const handleSwitch = (e: React.MouseEvent) => { e.stopPropagation() console.log('clicked switch input') } return ( handleSelectedMenu(0)}> Saved Messages handleSelectedMenu(1)}> Archived Chats handleSelectedMenu(2)}> Contacts handleSelectedMenu(3)}> Settings handleSelectedMenu(4)}> Night Mode handleSelectedMenu(5)}> Animations handleSelectedMenu(6)}> Telegram Features handleSelectedMenu(7)}> Report bug handleSelectedMenu(8)}> K Switch to K Version handleSelectedMenu(9)}> W Switch to Old Version handleSelectedMenu(10)}> ); } export default MenuBar