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

thinking-part.tsx

18 lines444 Bytes

1import type { PartProps } from '@tanstack/ai-react/ui'
2import {
3 Reasoning,
4 ReasoningContent,
5 ReasoningTrigger,
6} from '@/components/ai/reasoning'
7import type { chatOptions } from '@/chat/options'
8​
9export function ThinkingPart({
10 part,
11}: PartProps<typeof chatOptions, 'thinking'>) {
12 return (
13 <Reasoning className="w-full">
14 <ReasoningTrigger />
15 <ReasoningContent>{part.content}</ReasoningContent>
16 </Reasoning>
17 )