import CircularLoading from "@/app/component/loading/Circular"; import CustomLoading from "@/app/component/loading/Custom"; import TextLoading from "@/app/component/loading/Text"; import Link from "next/link"; import { convertTimestampToJalali, imageUrl } from "@/helper"; function Item({ data, idx, loading }) { const cover = data?.images?.[0]?.url ? imageUrl(data.images[0].url) : "/assets/images/cover-blog-1.png"; const createdDate = data?.created ? convertTimestampToJalali(data.created) : ""; return (
  • {data.title

    {data.title}

    {createdDate && `تاریخ انتشار: ${createdDate}`}

    {idx > 0 && ( )}
  • ); } export default Item;