"use client" /** * Leo search-bar thinking wash — inside the pill or outside as a free-offset halo. * * The clip frame is pinned to the pill and never translates. Placement offsets * are passed into AnimatedBlobBackground and applied per-blob only. */ import * as React from "react" import { AnimatedBlobBackground } from "@/components/animated-blob-background" import { AiThinkingOverlay } from "@/components/ui/ai-thinking-surface" import type { LeoAmbiencePrefs } from "@/lib/leo-ambience" import { cn } from "@/lib/utils" export function LeoSearchBarWash({ prefs, mode, className, }: { prefs: LeoAmbiencePrefs mode: "inside" | "outside" className?: string }) { if (!prefs.searchBarWash) return null const intensity = prefs.thinkingBlobIntensity === "high" ? "high" : "normal" return (
{prefs.searchBarDots ? ( ) : null}
) }