"use client"; import React, { useState, useCallback, useEffect, useRef, useId } from "react"; import { useRouter } from "next/navigation"; // ─── Types ─────────────────────────────────────────────────────────────────── interface Suggestion { type: "plant" | "disease"; id: string; label: string; subtitle: string; emoji: string; href: string; } export interface SearchSuggestionsProps { /** Placeholder text for the search input */ placeholder?: string; /** Additional CSS classes for the search element */ inputClassName?: string; /** Additional CSS classes for the outer wrapper div */ wrapperClassName?: string; /** Additional CSS classes for the