diff --git a/src/app/products/page.tsx b/src/app/products/page.tsx new file mode 100644 index 0000000..e2065c1 --- /dev/null +++ b/src/app/products/page.tsx @@ -0,0 +1,111 @@ +"use client"; + +import { Suspense } from "react"; +import ReactLenis from "lenis/react"; +import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; +import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline'; +import ProductCatalog from "@/components/ecommerce/productCatalog/ProductCatalog"; +import { useProductCatalog } from "@/hooks/useProductCatalog"; + +// Define common navigation items for sub-pages to maintain consistency +const ALL_NAV_ITEMS_SUB_PAGES = [ + { name: "Home", id: "/" }, + { name: "Products", id: "/products" }, + { name: "Shop", id: "/shop" }, + { name: "Blog", id: "/blog" }, + { name: "About", id: "/#about" }, + { name: "Testimonials", id: "/#testimonials" }, + { name: "FAQs", id: "/#faqs" } +]; + +function ProductsPageContent() { + const { + products, + isLoading, + search, + setSearch, + filters, + } = useProductCatalog({ basePath: "/products" }); + + if (isLoading) { + return ( + + + +
+
+

Loading products...

+
+
+
+
+ ); + } + + return ( + + + +
+ +
+
+
+ ); +} + +export default function ProductsPage() { + return ( + + + + ); +}