"use client"; import Footer from "@comp/Footer/page"; import Navbar from "@comp/Navbar/page"; import { usePathname, useRouter, useSearchParams } from "next/navigation"; import PersianNumber from "plugins/PersianNumber"; import React from "react"; import Cart from "../BlogComponents/Cart"; import PaginationBlogs from "../BlogComponents/PaginationBlogs"; import Image from "next/image"; import Link from "next/link"; const BlogsData = ({ dataCaetgories, data }) => { console.log("data", data); const pathname = usePathname(); const searchParams = useSearchParams(); const router = useRouter(); const searchParamsCurrentId = searchParams.get("blogCategoryId"); const handleGoCategories = (id) => { // CTX.setIsChecked(!isChecked); const params = new URLSearchParams(searchParams.toString()); params.set("blogCategoryId", id); params.set("page", "0"); router.push(`${pathname}?${params}`); }; const lates4Blog = data.blogs?.slice(0, 4); console.log(lates4Blog); return (
{" "} {lates4Blog[0]?.summery}
{lates4Blog[0]?.categoryName}
{" "} نوشته : {lates4Blog[0]?.authorFullName || "ماهان قیصر زاده"}
{" "} {lates4Blog[1]?.summery}
{lates4Blog[1]?.categoryName}
{" "} نوشته : {lates4Blog[1]?.authorFullName || "ماهان قیصر زاده"}
{" "} {lates4Blog[2]?.summery}
{lates4Blog[2]?.categoryName}
{" "} نوشته : {lates4Blog[2]?.authorFullName || "ماهان قیصر زاده"}
سنتلا
فیری
سراوی
پیکسی
سیمپل
مرحبا
نارس
توکوبو
اوردینری
مشاهده همه ی برند ها
{e.name}
(