"use client" import { Search, Sparkles } from "lucide-react" import { motion } from "framer-motion" export type QueryMode = "search" | "ask" interface ModeToggleProps { mode: QueryMode onChange: (mode: QueryMode) => void } const MODES: { value: QueryMode; label: string; icon: typeof Search; hint: string }[] = [ { value: "search", label: "Search", icon: Search, hint: "Browse matching tiles" }, { value: "ask", label: "Ask", icon: Sparkles, hint: "Get a synthesized answer" }, ] export function ModeToggle({ mode, onChange }: ModeToggleProps) { return (