diff --git a/components/app-sidebar.tsx b/components/app-sidebar.tsx index 5b08bb5..42abf43 100644 --- a/components/app-sidebar.tsx +++ b/components/app-sidebar.tsx @@ -17,6 +17,7 @@ import { } from '@/components/ui/sidebar'; import Link from 'next/link'; import { Tooltip, TooltipContent, TooltipTrigger } from './ui/tooltip'; +import { ComposioIcon } from '@/components/icons'; export function AppSidebar({ user }: { user: User | undefined }) { const router = useRouter(); @@ -35,7 +36,7 @@ export function AppSidebar({ user }: { user: User | undefined }) { className="flex flex-row gap-3 items-center" > - Chatbot + diff --git a/components/chat.tsx b/components/chat.tsx index 6de6617..6a2ef8b 100644 --- a/components/chat.tsx +++ b/components/chat.tsx @@ -39,7 +39,7 @@ export function Chat({ }) { const { mutate } = useSWRConfig(); const { state: toolbarState } = useToolbarState(); - + // Create a ref to always have the latest toolbar state const toolbarStateRef = useRef(toolbarState); useEffect(() => { @@ -76,7 +76,7 @@ export function Chat({ const enabledToolkits = Array.from( currentToolbarState.enabledToolkitsWithStatus.entries(), ).map(([slug, isConnected]) => ({ slug, isConnected })); - + return { id, message: body.messages.at(-1), diff --git a/components/icons.tsx b/components/icons.tsx index da76998..029116a 100644 --- a/components/icons.tsx +++ b/components/icons.tsx @@ -1,3 +1,5 @@ +import Image from 'next/image'; + export const BotIcon = () => { return ( { ); }; +export const ComposioIcon = ({ size = 96 }) => { + return ( +
+ Composio logo + Composio logo +
+ ); +}; + export const VercelIcon = ({ size = 17 }) => { return ( 1 ? 'hidden sm:block' : 'block'} + className={index > 1 ? "hidden sm:block" : "block"} >
- +

Toolkits

@@ -872,7 +881,7 @@ function ToolbarMobile() {
- + Toolkits
@@ -980,7 +989,11 @@ export function ToolBarTrigger() { )} aria-label="Toggle Toolkits" > - {open ? : } + {open ? ( + + ) : ( + + )} Toolkits {hasEnabledTools && !open && ( diff --git a/public/assets/icons/composio-logo-dark.svg b/public/assets/icons/composio-logo-dark.svg new file mode 100644 index 0000000..a836fba --- /dev/null +++ b/public/assets/icons/composio-logo-dark.svg @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/public/assets/icons/composio-logo-light.svg b/public/assets/icons/composio-logo-light.svg new file mode 100644 index 0000000..d2737c0 --- /dev/null +++ b/public/assets/icons/composio-logo-light.svg @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + +