Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

text-part.tsx

7 lines301 Bytes

1import type { PartProps } from '@tanstack/ai-react/ui'
2import { MessageResponse } from '@/components/ai/message'
3import type { chatOptions } from '@/chat/options'
4​
5export function TextPart({ part }: PartProps<typeof chatOptions, 'text'>) {
6 return <MessageResponse>{part.content}</MessageResponse>
7}