import { NavLink } from 'react-router-dom'; import Arrow1 from './assets/arrow.svg'; import Message from './assets/message.svg'; import Hamburger from './assets/hamburger.svg'; import Key from './assets/key.svg'; import Info from './assets/info.svg'; import Link from './assets/link.svg'; import { ActiveState } from './models/misc'; import APIKeyModal from './preferences/APIKeyModal'; import SelectDocsModal from './preferences/SelectDocsModal'; import { useSelector } from 'react-redux'; import { selectApiKeyStatus, selectSelectedDocsStatus, } from './preferences/preferenceSlice'; import { useState } from 'react'; //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 export default function Navigation({ navState, setNavState, }: { navState: ActiveState; setNavState: (val: ActiveState) => void; }) { const isApiKeySet = useSelector(selectApiKeyStatus); const [apiKeyModalState, setApiKeyModalState] = useState( isApiKeySet ? 'INACTIVE' : 'ACTIVE', ); const isSelectedDocsSet = useSelector(selectSelectedDocsStatus); const [selectedDocsModalState, setSelectedDocsModalState] = useState(isSelectedDocsSet ? 'INACTIVE' : 'ACTIVE'); return ( <>
`${ isActive ? 'bg-gray-3000' : '' } my-auto mx-4 mt-4 flex h-12 cursor-pointer gap-4 rounded-md hover:bg-gray-100` } >

Chat

{ setApiKeyModalState('ACTIVE'); }} > key

Reset Key

{ setSelectedDocsModalState('ACTIVE'); }} > key

Select Source Documentation

`my-auto mx-4 flex h-12 cursor-pointer gap-4 rounded-md hover:bg-gray-100 ${ isActive ? 'bg-gray-3000' : '' }` } > info

About

link

Discord

link

Github

); }