"use client" /** * LeoThinkingBackdrop — ambient thinking chrome from Leo AI Q2: * gradient blobs (rest vs thinking tempo) + drifting dot cloud overlay. */ import * as React from "react" import { AnimatedBlobBackground, type BlobIntensity, } from "@/components/animated-blob-background" import { AiThinkingOverlay } from "@/components/ui/ai-thinking-surface" import { cn } from "@/lib/utils" export type LeoThinkingBackdropProps = { /** Show blob layer (disable on very small surfaces if needed). */ blobsEnabled?: boolean /** Faster blob drift while the model is working. */ thinking?: boolean /** Drifting dot pattern overlay. */ dotsActive?: boolean /** `high` on empty hero; `normal` in conversation. */ intensity?: BlobIntensity /** * `landing` — blobs anchor under the hero composer when idle. * `panel` — blobs fill the aside (Ask Leo sidebar). */ variant?: "landing" | "panel" className?: string } export function LeoThinkingBackdrop({ blobsEnabled = true, thinking = false, dotsActive = false, intensity = "normal", variant = "landing", className, }: LeoThinkingBackdropProps) { const hasConversation = intensity === "normal" const showDots = dotsActive return (
{blobsEnabled ? (
) : null}
) }