Skip to content

Commit

Permalink
feat: add chat and serach playground
Browse files Browse the repository at this point in the history
  • Loading branch information
drew-harris committed Aug 30, 2024
1 parent 10f501a commit e50cb61
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions frontends/analytics/src/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,16 @@ const domainNavbarRoutes = [
label: "API Docs",
icon: AiOutlineApi,
},
{
href: "https://search.trieve.ai",
label: "Search Playground",
icon: HiOutlineMagnifyingGlass,
},
{
href: "https://chat.trieve.ai",
label: "Chat Playground",
icon: IoChatboxOutline,
},
];

export const Sidebar = (props: NavbarProps) => {
Expand Down Expand Up @@ -168,15 +178,15 @@ export const Sidebar = (props: NavbarProps) => {
<div
role="link"
classList={{
"cursor-pointer flex items-center gap-2": true,
"cursor-pointer flex items-center text-sm gap-2": true,
"text-purple-900 underline": pathname() === link.href,
"text-black": pathname() !== link.href,
}}
onClick={() => {
window.open(link.href);
}}
>
{link.icon({ size: "18px" })}
{link.icon({ size: "14px" })}
{link.label}
</div>
);
Expand Down

0 comments on commit e50cb61

Please sign in to comment.