update: add thinking badge before outline stream

This commit is contained in:
Suraj Jha 2025-08-19 00:04:43 +05:45
parent 2485b147d1
commit 393bb9c842
No known key found for this signature in database
GPG key ID: 5AC6C16355CE2C14

View file

@ -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