import React from "react"; import Pagination from "../common/Pagination"; import { allBlogs } from "@/utlis/constant.utils"; import Link from "next/link"; import Image from "next/image"; export default function Blogs() { return (
{allBlogs.slice(-3).map((news) => (
{news.images?.map((image, index) => ( img ))}
  • {news.category}
  • {news.date}

{news.title}

img
Admin

{news.author.name}

Read More
))}
{/* Optional pagination if needed */} {/* */}
); }