Spaces:
Paused
Paused
Download components/Mobile/Navbar.tsx from matthoffner/chatbot: direct link, hf CLI and curl.
- Browser
- Download file 703 Bytes
-
https://huggingface.co/spaces/matthoffner/chatbot/resolve/d28de650899ced13e58e69617833760ae4cbf139/components/Mobile/Navbar.tsx
- Command line
-
hf download hf://spaces/matthoffner/chatbot@d28de650899ced13e58e69617833760ae4cbf139/components/Mobile/Navbar.tsx
-
curl -L -o Navbar.tsx https://huggingface.co/spaces/matthoffner/chatbot/resolve/d28de650899ced13e58e69617833760ae4cbf139/components/Mobile/Navbar.tsx
703 Bytes
| import { IconPlus } from '@tabler/icons-react'; | |
| import { FC } from 'react'; | |
| import { Conversation } from '@/types/chat'; | |
| interface Props { | |
| selectedConversation: Conversation; | |
| onNewConversation: () => void; | |
| } | |
| export const Navbar: FC<Props> = ({ | |
| selectedConversation, | |
| onNewConversation, | |
| }) => { | |
| return ( | |
| <nav className="flex w-full justify-between bg-[#202123] py-3 px-4"> | |
| <div className="mr-4"></div> | |
| <div className="max-w-[240px] overflow-hidden text-ellipsis whitespace-nowrap"> | |
| {selectedConversation.name} | |
| </div> | |
| <IconPlus | |
| className="cursor-pointer hover:text-neutral-400 mr-8" | |
| onClick={onNewConversation} | |
| /> | |
| </nav> | |
| ); | |
| }; | |