|
|
@@ -1,22 +1,19 @@
|
|
|
"use client";
|
|
|
import { useEffect, useRef, useState } from "react";
|
|
|
-import dynamicImport from "next/dynamic";
|
|
|
+// import dynamicImport from "next/dynamic";
|
|
|
import Link from "next/link";
|
|
|
import { useSearchProduct } from "@/utils/hooks/useSearchProduct";
|
|
|
import Grid from "@/components/theme/ui/grid/Grid";
|
|
|
import HotSearch from "@/app/(public)/search/_components/HotSearch";
|
|
|
import NewProductGridItems from "@components/catalog/product/NewProductGridItems";
|
|
|
import Recommend from "@/app/(public)/product/_components/youmaylike/Recommend";
|
|
|
-const ProductGridItems = dynamicImport(
|
|
|
- () => import("@/components/catalog/product/ProductGridItems"),
|
|
|
-);
|
|
|
+// const ProductGridItems = dynamicImport(
|
|
|
+// () => import("@/components/catalog/product/ProductGridItems"),
|
|
|
+// );
|
|
|
|
|
|
interface SearchPopProps {
|
|
|
open: boolean;
|
|
|
onClose: () => void;
|
|
|
-
|
|
|
- // 使用你项目里现有的 HomeProduct 类型
|
|
|
- youMayLikeProducts?: HomeProduct[];
|
|
|
}
|
|
|
|
|
|
const placeholderList = [
|
|
|
@@ -30,7 +27,6 @@ const placeholderList = [
|
|
|
export default function SearchPop({
|
|
|
open,
|
|
|
onClose,
|
|
|
- youMayLikeProducts = [],
|
|
|
}: SearchPopProps) {
|
|
|
const { data, error, searchProducts } = useSearchProduct();
|
|
|
|