import React from "react"; import Image from "next/image"; import Link from "next/link"; import { fetchBlog } from "@/services/payload/blog"; import { sanitizeBlogContentIntoStringPreview } from "@/utils/sanitize"; export default async function Blog() { const data = await fetchBlog(undefined); if (!data?.totalDocs) return <>; return ( <> {/* End Background Shape */}

Our Blog

Check the latest news about our company in our blog.

There are three kinds of web developer specialization front-end developer, back-end developer, and full-stack developer.

Our blog
{/* Blog Posts Grid */}
{/* Post Item */} {data?.formattedData?.slice(0, 2).map((elm: any, i: number) => (
Add Image Description

{elm.title}

{sanitizeBlogContentIntoStringPreview(elm.content)}
))} {/* End Post Item */}
{/* End Blog Posts Grid */}
); }