From f99e0aba70efad0deb907d8e27f09fc9f527c8a4 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Fri, 17 Feb 2023 17:07:50 +0700 Subject: Refactor --- src/pages/shop/search.jsx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/pages/shop/search.jsx (limited to 'src/pages/shop/search.jsx') diff --git a/src/pages/shop/search.jsx b/src/pages/shop/search.jsx new file mode 100644 index 00000000..e86b1f4e --- /dev/null +++ b/src/pages/shop/search.jsx @@ -0,0 +1,19 @@ +import BasicLayout from "@/core/components/layouts/BasicLayout" +import ProductSearch from "@/lib/product/components/ProductSearch" +import { useRouter } from "next/router" +import _ from "lodash-contrib" + +export default function Search() { + const router = useRouter() + + return ( + + { !_.isEmpty(router.query) && ( + + ) } + + ) +} \ No newline at end of file -- cgit v1.2.3