'use client'; import { cn } from '@/lib/utils'; import { ChatList } from '@/components/chat/ChatList'; import { ChatPanel } from '@/components/chat/ChatPanel'; import { ChatScrollAnchor } from '@/components/chat/ChatScrollAnchor'; import ImageList from './ImageList'; import useChatWithDataset from '../../lib/hooks/useChatWithDataset'; import { useChat } from 'ai/react'; import { Button } from '../ui/Button'; import ImageSelector from './ImageSelector'; export interface ChatProps extends React.ComponentProps<'div'> { id: string; } export function Chat({ id, className }: ChatProps) { const { messages, append, reload, stop, isLoading, input, setInput } = useChat(); return ( <>
{/* */}
{/* */}
{/* */} ); }