Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 39x 39x 92x 92x 39x 39x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 44x 44x 44x 44x 44x 44x 44x 44x 44x 44x 44x 44x 44x 44x 44x 44x 44x 44x 44x 92x 92x 92x 92x 42x 42x 42x 42x 42x 42x 42x 126x 126x 42x 42x 42x 92x 92x 92x 92x 92x 92x 92x 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x 1x 5x 4x 4x 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x 3x 5x 2x 2x 5x 5x 5x 1x 1x 5x 5x 92x 92x 92x 92x 1x 1x 92x 92x 92x 92x 92x 92x 92x 92x 3x 3x 3x 92x 92x 92x 92x 92x 92x 92x 92x 1x 1x 1x 1x 92x 92x 92x 92x 39x 39x 39x 39x 39x 39x 39x 92x 92x 92x 92x 99x 99x 99x 92x 92x 92x 92x 39x 39x 39x 39x 36x 39x 39x 39x 3x 3x 39x 39x 39x 92x 92x 92x 92x 92x 92x 92x 39x 92x 92x 92x 44x 92x 92x 92x 92x 87x 30x 30x 30x 30x 30x 30x 92x 92x 92x 92x 87x 6x 3x 6x 6x 6x 6x 6x 6x 92x 92x 92x 92x 70x 4x 4x 12x 12x 4x 92x 92x 92x 77x 77x 77x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 87x 87x 87x 87x 87x 87x 2x 2x 87x 87x 87x 87x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 50x 92x 42x 42x 42x 42x 42x 42x 42x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 9x 9x 9x 9x 9x 9x 9x 9x 9x 9x 9x 9x 9x 9x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 54x 92x 38x 38x 114x 114x 114x 114x 114x 38x 92x 92x 92x 92x 92x 92x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 126x 126x 126x 126x 126x 126x 126x 126x 126x 126x 126x 126x 126x 126x 126x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 92x 92x 92x 92x 92x 92x 92x 92x 92x 92x 1x 1x | "use client";
import React, { useState, useEffect, useCallback, useRef } from "react";
import { useSearchParams, useRouter, usePathname } from "next/navigation";
import { Select } from "@/components/ui/Select";
import CategoryDropdown from "./ShopSidebar/CategoryDropdown";
import PriceDropdown from "./ShopSidebar/PriceDropdown";
import { ProductCard } from "@/components/features/product";
import { ProductSkeletonItems, CategoryDropdownSkeleton } from "@/components/ui/Skeleton";
import ErrorMessage from "@/components/ui/ErrorMessage";
import { clientLogger } from "@/lib/logging/clientLogger";
import { Icon } from "@/components/ui/icons";
import type { Product } from "@/types/product";
import { Button } from "@/components/ui";
import { useFunnelSteps } from "@/hooks/useFunnelTracking";
interface PrismaCategory {
id: number;
name: string;
slug?: string;
parentId?: number | null;
children?: PrismaCategory[];
products?: number;
}
interface Category {
id: number;
name: string;
products: number;
children?: Category[];
}
const ShopWithSidebar = () => {
const searchParams = useSearchParams();
const router = useRouter();
const pathname = usePathname();
const searchQuery = searchParams.get("query") || "";
const categoryParam = searchParams.get("category");
const pageParam = searchParams.get("page");
const pageSizeParam = searchParams.get("pageSize");
const { trackStep } = useFunnelSteps();
const hasTrackedViewRef = useRef(false);
const lastTrackedCategoryRef = useRef<number | null>(null);
const [productStyle, setProductStyle] = useState("grid");
const [productSidebar, setProductSidebar] = useState(false);
const [stickyMenu, setStickyMenu] = useState(false);
const [sortBy, setSortBy] = useState("0");
const [products, setProducts] = useState<Product[]>([]);
const [loading, setLoading] = useState(true);
const [error, setError] = useState<string | null>(null);
const [page, setPage] = useState(() => {
const parsed = pageParam ? parseInt(pageParam, 10) : 1;
return isNaN(parsed) || parsed < 1 ? 1 : parsed;
});
const [pageSize, setPageSize] = useState(() => {
const parsed = pageSizeParam ? parseInt(pageSizeParam, 10) : 12;
return [12, 24, 48].includes(parsed) ? parsed : 12;
});
const [total, setTotal] = useState(0);
const [categoryFilter, setCategoryFilter] = useState<number | null>(
categoryParam ? parseInt(categoryParam, 10) : null
);
const [categories, setCategories] = useState<Category[]>([]);
const [categoriesLoading, setCategoriesLoading] = useState(true);
const [expandedCategories, setExpandedCategories] = useState<Set<number>>(new Set());
// Fetch products from API
const fetchProducts = useCallback(async () => {
try {
setLoading(true);
setError(null);
const params = new URLSearchParams({
page: page.toString(),
limit: pageSize.toString(),
...(categoryFilter && { categoryId: categoryFilter.toString() }),
...(searchQuery && { search: searchQuery })});
const response = await fetch(`/api/products?${params}`);
if (!response.ok) throw new Error("Failed to fetch products");
const data = await response.json();
setProducts(data.products || []);
setTotal(data.pagination?.total || 0);
} catch (error) {
clientLogger.error("Error fetching products", error instanceof Error ? error : new Error(String(error)));
setError(error instanceof Error ? error.message : "Failed to load products");
setProducts([]);
setTotal(0);
} finally {
setLoading(false);
}
}, [page, pageSize, categoryFilter, searchQuery]);
// Generate pagination numbers with ellipsis
const getPaginationRange = () => {
const totalPages = Math.ceil(total / pageSize);
const delta = 1; // Number of pages to show on each side of current page
const range: (number | string)[] = [];
if (totalPages <= 7) {
// Show all pages if 7 or fewer
for (let i = 1; i <= totalPages; i++) {
range.push(i);
}
} else {
// Always show first page
range.push(1);
if (page > 3) {
range.push('...');
}
// Pages around current
const start = Math.max(2, page - delta);
const end = Math.min(totalPages - 1, page + delta);
for (let i = start; i <= end; i++) {
range.push(i);
}
if (page < totalPages - 2) {
range.push('...');
}
// Always show last page
range.push(totalPages);
}
return range;
};
const handleRetry = () => {
fetchProducts();
};
// Update URL with all filter/pagination params
const updateUrl = useCallback((updates: {
page?: number;
pageSize?: number;
category?: number | null;
clearSearch?: boolean;
}) => {
const params = new URLSearchParams(searchParams.toString());
// Handle page
const newPage = updates.page ?? page;
if (newPage > 1) {
params.set("page", newPage.toString());
} else {
params.delete("page");
}
// Handle pageSize
const newPageSize = updates.pageSize ?? pageSize;
if (newPageSize !== 12) {
params.set("pageSize", newPageSize.toString());
} else {
params.delete("pageSize");
}
// Handle category
const newCategory = updates.category !== undefined ? updates.category : categoryFilter;
if (newCategory) {
params.set("category", newCategory.toString());
} else {
params.delete("category");
}
// Handle clearing search query
if (updates.clearSearch) {
params.delete("query");
}
router.push(`${pathname}?${params.toString()}`, { scroll: false });
}, [searchParams, router, pathname, page, pageSize, categoryFilter]);
// Handle page change
const handlePageChange = useCallback((newPage: number) => {
setPage(newPage);
updateUrl({ page: newPage });
}, [updateUrl]);
// Handle page size change
const handlePageSizeChange = useCallback((newSize: number) => {
setPageSize(newSize);
setPage(1); // Reset to first page when changing page size
updateUrl({ pageSize: newSize, page: 1 });
}, [updateUrl]);
// Handle category selection from sidebar
const handleCategorySelect = useCallback((categoryId: number | null) => {
setCategoryFilter(categoryId);
setPage(1);
updateUrl({ category: categoryId, page: 1 });
}, [updateUrl]);
// Clear search query
const handleClearSearch = useCallback(() => {
setPage(1);
updateUrl({ page: 1, clearSearch: true });
}, [updateUrl]);
// Clear all filters (including search)
const handleClearAllFilters = () => {
setCategoryFilter(null);
setExpandedCategories(new Set());
setPage(1);
updateUrl({ category: null, page: 1, clearSearch: true });
};
// Sync URL param changes to state (for back/forward navigation)
useEffect(() => {
const urlCategory = categoryParam ? parseInt(categoryParam, 10) : null;
const urlPage = pageParam ? parseInt(pageParam, 10) : 1;
const urlPageSize = pageSizeParam ? parseInt(pageSizeParam, 10) : 12;
if (urlCategory !== categoryFilter) {
setCategoryFilter(urlCategory);
}
if (!isNaN(urlPage) && urlPage >= 1 && urlPage !== page) {
setPage(urlPage);
}
if ([12, 24, 48].includes(urlPageSize) && urlPageSize !== pageSize) {
setPageSize(urlPageSize);
}
}, [categoryParam, pageParam, pageSizeParam]); // eslint-disable-line react-hooks/exhaustive-deps
// Transform API category to CategoryDropdown format
const transformCategory = useCallback((cat: PrismaCategory): Category => ({
id: cat.id,
name: cat.name,
products: cat.products || 0,
children: cat.children?.map(transformCategory)}), []);
// Fetch categories from API (only top-level)
const fetchCategories = useCallback(async () => {
try {
setCategoriesLoading(true);
const response = await fetch("/api/categories?parentOnly=true");
if (!response.ok) throw new Error("Failed to fetch categories");
const data = await response.json();
const prismaCategories: PrismaCategory[] = data.data || [];
setCategories(prismaCategories.map(transformCategory));
} catch (error) {
clientLogger.error("Error fetching categories", error instanceof Error ? error : new Error(String(error)));
// Fallback to empty array
} finally {
setCategoriesLoading(false);
}
}, [transformCategory]);
// Toggle category expansion
const toggleCategoryExpansion = (categoryId: number) => {
const newExpanded = new Set(expandedCategories);
if (newExpanded.has(categoryId)) {
newExpanded.delete(categoryId);
} else {
newExpanded.add(categoryId);
}
setExpandedCategories(newExpanded);
};
useEffect(() => {
fetchCategories();
}, [fetchCategories]);
useEffect(() => {
fetchProducts();
}, [fetchProducts]);
// Track view_item_list when products are loaded for the first time
useEffect(() => {
if (!loading && products.length > 0 && !hasTrackedViewRef.current) {
trackStep('productDiscovery', 'view_item_list', {
item_count: products.length,
category_id: categoryFilter,
search_query: searchQuery || undefined});
hasTrackedViewRef.current = true;
}
}, [loading, products, categoryFilter, searchQuery, trackStep]);
// Track category_view when a category is selected
useEffect(() => {
if (categoryFilter && categoryFilter !== lastTrackedCategoryRef.current) {
const categoryName = categories.find(c => c.id === categoryFilter)?.name ||
categories.flatMap(c => c.children || []).find(c => c.id === categoryFilter)?.name;
trackStep('productDiscovery', 'category_view', {
category_id: categoryFilter,
category_name: categoryName});
lastTrackedCategoryRef.current = categoryFilter;
}
}, [categoryFilter, categories, trackStep]);
// Auto-expand parent category if a child is selected from URL
useEffect(() => {
if (categoryFilter && categories.length > 0) {
// Find parent category that contains this child
for (const parent of categories) {
if (parent.children?.some(child => child.id === categoryFilter)) {
setExpandedCategories(prev => new Set([...prev, parent.id]));
break;
}
}
}
}, [categoryFilter, categories]);
const handleStickyMenu = () => {
if (window.scrollY >= 80) {
setStickyMenu(true);
} else {
setStickyMenu(false);
}
};
const options = [
{ label: "Latest Products", value: "0" },
{ label: "Best Selling", value: "1" },
{ label: "Old Products", value: "2" },
];
// Use fetched categories or fallback to empty array
const displayCategories = categories.length > 0 ? categories : [];
useEffect(() => {
window.addEventListener("scroll", handleStickyMenu);
// closing sidebar while clicking outside
function handleClickOutside(event: MouseEvent) {
if (!(event.target as Element).closest(".sidebar-content")) {
setProductSidebar(false);
}
}
if (productSidebar) {
document.addEventListener("mousedown", handleClickOutside);
}
return () => {
document.removeEventListener("mousedown", handleClickOutside);
};
});
return (
<>
<section className="overflow-hidden relative pb-20 pt-[140px] bg-[#f3f4f6] dark:bg-gray-900">
<div className="max-w-[1170px] w-full mx-auto px-4 sm:px-8 xl:px-0">
<div className="flex gap-7.5">
{/* <!-- Sidebar Start --> */}
<div
className={`sidebar-content fixed xl:z-1 z-9999 left-0 top-0 xl:translate-x-0 xl:static max-w-[310px] xl:max-w-[300px] w-full ease-out duration-200 ${
productSidebar
? "translate-x-0 bg-white dark:bg-gray-800 p-5 h-screen overflow-y-auto"
: "-translate-x-full"
}`}
>
<Button
onClick={() => setProductSidebar(!productSidebar)}
aria-label="Toggle filter sidebar"
variant="ghost"
size="sm"
className={`xl:hidden absolute -right-12.5 sm:-right-8 w-8 h-8 rounded-md bg-white dark:bg-gray-800 shadow-1 ${
stickyMenu
? "lg:top-20 sm:top-34.5 top-35"
: "lg:top-24 sm:top-39 top-37"
}`}
>
<Icon name="arrows-left-right" className="fill-current" size={24} />
</Button>
<form onSubmit={(e) => e.preventDefault()}>
{/* min-h ensures sidebar doesn't collapse during loading, preventing CLS */}
<div className="flex flex-col gap-6 min-h-[400px]">
{/* <!-- filter box --> */}
<div className="bg-white dark:bg-gray-800 shadow-1 rounded-lg py-4 px-5">
<div className="flex items-center justify-between">
<p className="text-dark dark:text-gray-200">Filters:</p>
<Button
type="button"
onClick={handleClearAllFilters}
variant="ghost"
size="sm"
>
Clear All
</Button>
</div>
</div>
{/* <!-- category box --> */}
{categoriesLoading ? (
<CategoryDropdownSkeleton />
) : (
<CategoryDropdown
categories={displayCategories}
onCategorySelect={handleCategorySelect}
expandedCategories={expandedCategories}
onToggleExpand={toggleCategoryExpansion}
selectedCategoryId={categoryFilter}
/>
)}
{/* <!-- price range box --> */}
<PriceDropdown />
</div>
</form>
</div>
{/* // <!-- Sidebar End --> */}
{/* // <!-- Content Start --> */}
<div className="xl:max-w-[870px] w-full relative xl:z-10">
<div className="rounded-lg bg-white dark:bg-gray-800 shadow-1 pl-3 pr-2.5 py-2.5 mb-6">
<div className="flex items-center justify-between">
{/* <!-- top bar left --> */}
<div className="flex flex-wrap items-center gap-4">
<Select
options={options}
value={sortBy}
onChange={(value) => setSortBy(value)}
label="Sort products"
hideLabel
variant="minimal"
/>
<div className="flex flex-col gap-1">
<p className="text-dark-3 dark:text-gray-300">
Showing <span className="text-dark dark:text-gray-100">{((page - 1) * pageSize) + 1}-{Math.min(page * pageSize, total)}</span> of{" "}
<span className="text-dark dark:text-gray-100">{total}</span> Products
</p>
{searchQuery && (
<div className="flex items-center gap-2 text-sm">
<p className="text-gray-600 dark:text-gray-400">
Search results for: <span className="font-semibold text-blue">"{searchQuery}"</span>
</p>
<Button
onClick={handleClearSearch}
variant="ghost"
size="sm"
className="text-xs text-gray-500 hover:text-red-500 p-1"
>
<Icon name="x" size={14} className="mr-1" />
Clear
</Button>
</div>
)}
</div>
</div>
{/* <!-- top bar right --> */}
<div className="flex items-center gap-2.5">
<Button
onClick={() => setProductStyle("grid")}
aria-label="View as grid"
aria-pressed={productStyle === "grid"}
variant={productStyle === "grid" ? "primary" : "secondary"}
size="sm"
className="w-10.5 h-9"
>
<Icon name="grid" className="fill-current" size={18} />
</Button>
<Button
onClick={() => setProductStyle("list")}
aria-label="View as list"
aria-pressed={productStyle === "list"}
variant={productStyle === "list" ? "primary" : "secondary"}
size="sm"
className="w-10.5 h-9"
>
<Icon name="list" className="fill-current" size={18} />
</Button>
</div>
</div>
</div>
{/* <!-- Products Grid Tab Content Start --> */}
{error && (
<div className="mb-6">
<ErrorMessage
title="Failed to Load Products"
message={error}
onRetry={handleRetry}
/>
</div>
)}
{/* Product grid container - min-height prevents CLS during loading */}
<div
className={`min-h-[800px] ${
productStyle === "grid"
? "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-x-7.5 gap-y-9"
: "flex flex-col gap-7.5"
}`}
>
{loading ? (
<ProductSkeletonItems count={pageSize} />
) : products.length === 0 ? (
<div className="col-span-full text-center py-10">
<p className="text-gray-700 dark:text-gray-300">No products found</p>
</div>
) : (
products.map((item, key) => (
<ProductCard
key={key}
product={item}
variant={productStyle === "grid" ? "grid" : "list"}
/>
))
)}
</div>
{/* <!-- Products Grid Tab Content End --> */}
{/* <!-- Products Pagination Start --> */}
{total > pageSize && (
<div className="mt-10 flex flex-col sm:flex-row items-center justify-between gap-4">
{/* Results info and page size selector */}
<div className="flex items-center gap-4 text-sm text-gray-600 dark:text-gray-400">
<span>
Showing {((page - 1) * pageSize) + 1}-{Math.min(page * pageSize, total)} of {total} products
</span>
<div className="flex items-center gap-2">
<label htmlFor="pageSize" className="text-gray-600 dark:text-gray-400">
Show:
</label>
<select
id="pageSize"
value={pageSize}
onChange={(e) => handlePageSizeChange(Number(e.target.value))}
className="bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 rounded-md px-2 py-1 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 dark:text-gray-200"
>
<option value={12}>12</option>
<option value={24}>24</option>
<option value={48}>48</option>
</select>
</div>
</div>
{/* Pagination controls */}
<nav aria-label="Product pagination">
<ul className="flex items-center gap-1" role="list">
{/* Previous button */}
<li>
<Button
onClick={() => handlePageChange(Math.max(1, page - 1))}
disabled={page === 1}
aria-label="Go to previous page"
type="button"
variant="ghost"
size="sm"
className="w-9 h-9 rounded-md"
>
<Icon name="chevron-left" className="fill-current" size={18} aria-hidden="true" />
</Button>
</li>
{/* Page numbers with ellipsis */}
{getPaginationRange().map((item, index) => (
<li key={index}>
{item === '...' ? (
<span className="px-2 py-1 text-gray-500 dark:text-gray-400">...</span>
) : (
<Button
onClick={() => handlePageChange(item as number)}
variant={page === item ? "primary" : "ghost"}
size="sm"
className={`w-9 h-9 rounded-md ${page === item ? '' : 'hover:bg-gray-100 dark:hover:bg-gray-700'}`}
aria-label={`Page ${item}${page === item ? ', current page' : ''}`}
aria-current={page === item ? "page" : undefined}
>
{item}
</Button>
)}
</li>
))}
{/* Next button */}
<li>
<Button
onClick={() => handlePageChange(Math.min(Math.ceil(total / pageSize), page + 1))}
disabled={page === Math.ceil(total / pageSize)}
aria-label="Go to next page"
type="button"
variant="ghost"
size="sm"
className="w-9 h-9 rounded-md"
>
<Icon name="chevron-right" className="fill-current" size={18} aria-hidden="true" />
</Button>
</li>
</ul>
</nav>
</div>
)}
{/* <!-- Products Pagination End --> */}
</div>
{/* // <!-- Content End --> */}
</div>
</div>
</section>
</>
);
};
export default ShopWithSidebar;
|