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

fallback-interrupt.tsx

14 lines391 Bytes

1import type { InterruptProps } from '@tanstack/ai-react/ui'
2import type { chatOptions } from '@/chat/options'
3​
4export function FallbackInterrupt({
5 interrupt,
6}: InterruptProps<typeof chatOptions>) {
7 return (
8 <p className="text-muted-foreground text-sm">
9 {interrupt.kind === 'unbound'
10 ? `Paused elsewhere: ${interrupt.reason}`
11 : interrupt.reason}
12 </p>
13 )