mirror of
https://litchi.icu/ngc2207/judge4c-demo.git
synced 2025-05-18 19:47:15 +00:00
45 lines
1.4 KiB
TypeScript
45 lines
1.4 KiB
TypeScript
import {
|
|
ChatBubble,
|
|
ChatBubbleAvatar,
|
|
ChatBubbleMessage,
|
|
} from "@/components/ui/chat/chat-bubble";
|
|
import { ChatInput } from "@/components/ui/chat/chat-input";
|
|
import {
|
|
ExpandableChat,
|
|
ExpandableChatHeader,
|
|
ExpandableChatBody,
|
|
ExpandableChatFooter,
|
|
} from "@/components/ui/chat/expandable-chat";
|
|
import { ChatMessageList } from "@/components/ui/chat/chat-message-list";
|
|
import { Button } from "./ui/button";
|
|
import { Send } from "lucide-react";
|
|
|
|
export default function ChatSupport() {
|
|
return (
|
|
<ExpandableChat size="lg" position="bottom-right">
|
|
<ExpandableChatHeader className="flex-col text-center justify-center">
|
|
<h1 className="text-xl font-semibold">Chat with our AI ✨</h1>
|
|
<p>Ask any question for our AI to answer</p>
|
|
<div className="flex gap-2 items-center pt-2">
|
|
<Button variant="secondary">New Chat</Button>
|
|
<Button variant="secondary">See FAQ</Button>
|
|
</div>
|
|
</ExpandableChatHeader>
|
|
<ExpandableChatBody>
|
|
<ChatMessageList>
|
|
<ChatBubble>
|
|
<ChatBubbleAvatar />
|
|
<ChatBubbleMessage>{/* {message.content} */}</ChatBubbleMessage>
|
|
</ChatBubble>
|
|
</ChatMessageList>
|
|
</ExpandableChatBody>
|
|
<ExpandableChatFooter>
|
|
<ChatInput />
|
|
<Button type="submit" size="icon">
|
|
<Send className="size-4" />
|
|
</Button>
|
|
</ExpandableChatFooter>
|
|
</ExpandableChat>
|
|
);
|
|
}
|