Skip to content

Commit

Permalink
Assistant selection in input bar: create / manage buttons (#1797)
Browse files Browse the repository at this point in the history
* First pass on buttons

* formatting

* Link wrapping

* formatting
  • Loading branch information
philipperolet authored Sep 26, 2023
1 parent a02f49c commit c6961c8
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions front/components/assistant/conversation/InputBar.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import {
Avatar,
Button,
DropdownMenu,
IconButton,
PaperAirplaneIcon,
PlusIcon,
RobotIcon,
WrenchIcon,
} from "@dust-tt/sparkle";
import { Transition } from "@headlessui/react";
import Link from "next/link";
import {
ForwardedRef,
forwardRef,
Expand Down Expand Up @@ -609,6 +613,24 @@ export function AssistantInputBar({
}}
/>
))}
<div className="flex flex-row justify-between border-t border-structure-100 px-3 py-2">
<Link href={`/w/${owner.sId}/builder/assistants/new`}>
<Button
label="Create"
size="xs"
variant="secondary"
icon={PlusIcon}
/>
</Link>
<Link href={`/w/${owner.sId}/builder/assistants`}>
<Button
label="Manage"
size="xs"
variant="tertiary"
icon={WrenchIcon}
/>
</Link>
</div>
</DropdownMenu.Items>
</DropdownMenu>
</div>
Expand Down

0 comments on commit c6961c8

Please sign in to comment.