"use client" /** * Profile-menu switch for Library Basic vs Leo search (standing preference). */ import { DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, } from "@/components/ui/dropdown-menu" import { LIBRARY_SEARCH_MODES, setLibrarySearchMode, useLibrarySearchMode, type LibrarySearchMode, } from "@/hooks/use-library-search-mode" export function LibrarySearchModeMenu() { const mode = useLibrarySearchMode() const active = LIBRARY_SEARCH_MODES.find((option) => option.id === mode) return (