import { RADIO, versionNum } from "@/logic/constants"; import { useLocation } from "wouter"; import useLocalState from "@/state/state"; import logo from "@/assets/icons/logo.png"; import Icon from "@/components/Icon"; import { ThemeSwitcher } from "@/styles/ThemeSwitcher"; function SlidingMenu() { const [_, navigate] = useLocation(); const { api, unreadNotifications, setModal } = useLocalState((s) => ({ api: s.api, unreadNotifications: s.unreadNotifications, setModal: s.setModal })); function goto(to: string) { navigate(to); } function openNotifications() { // We'll create this component next import("../NotificationCenter").then(({ default: NotificationCenter }) => { setModal(); }); } return (

Feeds

goto(`/feed/global`)}>
Home
{unreadNotifications > 0 && ( {unreadNotifications > 99 ? "99+" : unreadNotifications} )}
Notifications

goto("/chat")} >
Messages
goto("/pals")}>
Pals

goto(`/feed/${api!.airlock.our}`)} >
Profile

goto("/sets")}>
Settings
); } export default SlidingMenu;