"use client" import Image from "next/image" import type { Hit as HitType } from "instantsearch.js" import LocalizedClientLink from "@modules/common/components/localized-client-link" import { ImageIcon } from "lucide-react" export type ProductHit = HitType<{ title: string | null handle: string | null thumbnail: string | null }> type SearchHitProps = { hit: ProductHit onNavigate?: () => void } const SearchHit = ({ hit, onNavigate }: SearchHitProps) => { if (!hit.handle) { return null } return (