diff --git a/apps/web/app/components/chat.tsx b/apps/web/app/components/chat.tsx index ce455e6a..2a9ef392 100644 --- a/apps/web/app/components/chat.tsx +++ b/apps/web/app/components/chat.tsx @@ -5,6 +5,8 @@ import { SidebarTrigger } from "@multica/ui/components/ui/sidebar"; import { Badge } from "@multica/ui/components/ui/badge"; import { ChatInput } from "@multica/ui/components/chat-input"; import { MemoizedMarkdown } from "@multica/ui/components/markdown"; +import { HugeiconsIcon } from "@hugeicons/react"; +import { UserIcon } from "@hugeicons/core-free-icons"; import { useMessages } from "../hooks/use-messages"; import { useGateway } from "../hooks/use-gateway"; import { useHub } from "../hooks/use-hub"; @@ -64,8 +66,9 @@ export function Chat() {
{!activeAgentId ? ( -
- Select an agent to start chatting +
+ + Select an agent to start chatting
) : filtered.length === 0 ? (
@@ -98,7 +101,11 @@ export function Chat() {
); diff --git a/packages/ui/src/components/chat-input.tsx b/packages/ui/src/components/chat-input.tsx index 9c9a2b05..ce5a3e94 100644 --- a/packages/ui/src/components/chat-input.tsx +++ b/packages/ui/src/components/chat-input.tsx @@ -3,13 +3,15 @@ import { useRef } from "react"; import { Button } from "@multica/ui/components/ui/button"; import { ArrowUpIcon } from "@hugeicons/core-free-icons"; import { HugeiconsIcon } from "@hugeicons/react"; +import { cn } from "@multica/ui/lib/utils"; interface ChatInputProps { onSubmit?: (value: string) => void; disabled?: boolean; + placeholder?: string; } -export function ChatInput({ onSubmit, disabled }: ChatInputProps) { +export function ChatInput({ onSubmit, disabled, placeholder = "Type a message..." }: ChatInputProps) { const textareaRef = useRef(null); const handleSubmit = () => { @@ -22,12 +24,15 @@ export function ChatInput({ onSubmit, disabled }: ChatInputProps) { }; return ( -
+