"use client"
import { ComponentContainer } from "@/components/ui/component-container"
import { SectionHeading } from "@/components/ui/section-heading"
import { AIChatInterfaceBlock } from "@/components/blocks/ai-chat-interface-block"
export function AIChatInterfaceSection() {
return (
}
code={`// AI Chat Interface Component
import { useState } from "react"
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"
import { Button } from "@/components/ui/button"
import { Card, CardFooter, CardHeader, CardTitle } from "@/components/ui/card"
import { Input } from "@/components/ui/input"
import { ScrollArea } from "@/components/ui/scroll-area"
import { Send, Bot } from 'lucide-react'
export function AIChatInterface() {
const [input, setInput] = useState("")
const [messages, setMessages] = useState([
{
id: "1",
content: "Hello! How can I help you today?",
role: "assistant",
timestamp: new Date(),
}
])
return (
{messages.map((message) => (
))}
setInput(e.target.value)}
placeholder="Type a message..."
className="flex-1"
/>
)
}`}
/>
)
}