npm install @tanstack/ai @tanstack/ai-preactimport { fetchServerSentEvents } from '@tanstack/ai-preact';import { createChatHook } from '@tanstack/ai-preact/ui'; const { useAppChat } = createChatHook({ options: { connection: fetchServerSentEvents('/api/chat') }, components: { layout: props => <section><props.Messages /></section>, message: props => <article><props.Parts /></article>, }, partsComponents: { text: props => <p>{props.part.content}</p>, fallback: () => null, },}); export function Chat() { const chat = useAppChat({ threadId: 'support' }); return <chat.AppChat />;}