import { Menu, MenuDivider, MenuItem } from '@szhsin/react-menu'; import { useSnapshot } from 'valtio'; import { api } from '../utils/api'; import states from '../utils/states'; import Icon from './icon'; import MenuLink from './MenuLink'; function NavMenu(props) { const snapStates = useSnapshot(states); const { instance, authenticated } = api(); return ( } > Home {authenticated && ( <> Notifications {snapStates.notificationsShowNew && ( {' '} • )} Lists Followed Hashtags Bookmarks Favourites )} Search Local Federated {authenticated && ( <> { states.showShortcutsSettings = true; }} > {' '} Shortcuts Settings… { states.showSettings = true; }} > Settings… )} ); } export default NavMenu;