import { useDispatch, useSelector } from 'react-redux'; import { NavLink } from 'react-router-dom'; import { useMediaQuery } from '../hooks'; import { toggleApiKeyModal, selectIsMenuOpen, toggleIsMenuOpen, } from '../store'; import Arrow1 from '../imgs/arrow.svg'; import Hamburger from '../imgs/hamburger.svg'; import Key from '../imgs/key.svg'; import Info from '../imgs/info.svg'; import Link from '../imgs/link.svg'; import Exit from '../imgs/exit.svg'; //TODO - Need to replace Chat button to open secondary nav with scrollable past chats option and new chat at top //TODO - Need to add Discord and Github links function MobileNavigation({}) { const dispatch = useDispatch(); const isMenuOpen = useSelector(selectIsMenuOpen); return (
{isMenuOpen ? ( <> ) : ( <> )}
{isMenuOpen && ( )}
); } function DesktopNavigation() { const dispatch = useDispatch(); const isMenuOpen = useSelector(selectIsMenuOpen); return (
{isMenuOpen && ( <>
dispatch(toggleApiKeyModal())} > key

Reset Key

info

About

link

Discord

link

Github

)}
); } export default function Navigation() { const isMobile = useMediaQuery('(max-width: 768px)'); if (isMobile) { return ; } else { return ; } }