fix: ThreadPrimitive.FollowupSuggestions → Suggestions, autoSend → send
Made-with: Cursor
This commit is contained in:
@@ -36,7 +36,7 @@ export const Thread: FC = () => (
|
|||||||
components={{ UserMessage, AssistantMessage }}
|
components={{ UserMessage, AssistantMessage }}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<ThreadPrimitive.FollowupSuggestions
|
<ThreadPrimitive.Suggestions
|
||||||
components={{ Suggestion: FollowupSuggestion }}
|
components={{ Suggestion: FollowupSuggestion }}
|
||||||
/>
|
/>
|
||||||
</ThreadPrimitive.Viewport>
|
</ThreadPrimitive.Viewport>
|
||||||
@@ -81,7 +81,7 @@ const ThreadWelcome: FC = () => (
|
|||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
|
||||||
const FollowupSuggestion: FC<{ suggestion: { prompt: string } }> = ({ suggestion }) => (
|
const FollowupSuggestion: FC<{ suggestion: { prompt: string } }> = ({ suggestion }) => (
|
||||||
<ThreadPrimitive.Suggestion prompt={suggestion.prompt} asChild autoSend>
|
<ThreadPrimitive.Suggestion prompt={suggestion.prompt} send asChild>
|
||||||
<button className="text-xs px-3 py-1.5 rounded-full border border-violet-200 dark:border-violet-800 text-violet-700 dark:text-violet-300 hover:bg-violet-50 dark:hover:bg-violet-950/40 transition-colors">
|
<button className="text-xs px-3 py-1.5 rounded-full border border-violet-200 dark:border-violet-800 text-violet-700 dark:text-violet-300 hover:bg-violet-50 dark:hover:bg-violet-950/40 transition-colors">
|
||||||
{suggestion.prompt}
|
{suggestion.prompt}
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user