update: add thinking badge before outline stream
This commit is contained in:
parent
2485b147d1
commit
393bb9c842
1 changed files with 9 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ import {
|
|||
} from "@dnd-kit/sortable";
|
||||
import { OutlineItem } from "./OutlineItem";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { FileText } from "lucide-react";
|
||||
import { FileText, Loader2 } from "lucide-react";
|
||||
import { usePathname } from "next/navigation";
|
||||
import { trackEvent, MixpanelEvent } from "@/utils/mixpanel";
|
||||
|
||||
|
|
@ -45,6 +45,14 @@ const OutlineContent: React.FC<OutlineContentProps> = ({
|
|||
|
||||
return (
|
||||
<div className="space-y-6 font-instrument_sans">
|
||||
{isLoading && (!outlines || outlines.length === 0) && (
|
||||
<div className="flex items-center justify-center">
|
||||
<span className="inline-flex items-center gap-1 rounded-full border border-blue-200 bg-blue-50 text-blue-600 px-2 py-0.5 text-xs">
|
||||
<Loader2 className="h-3 w-3 animate-spin" />
|
||||
Thinking
|
||||
</span>
|
||||
</div>
|
||||
)}
|
||||
{/* <div className="flex items-center justify-between">
|
||||
<h5 className="text-lg font-medium">
|
||||
Presentation Outline
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue