feat: Refactor blog components and add pagination

This commit is contained in:
Wini_Fy
2026-02-03 17:05:09 +07:00
parent bf652a64b6
commit 29cc0bf2cd
27 changed files with 2051 additions and 429 deletions

View File

@@ -1,13 +1,18 @@
import NewsDetailsContent from "./NewsDetailsContent";
import Sidebar from "@/app/blog/components/Sidebar";
import type { BlogPost } from "@/types/blog";
export default function NewsDetailsSection() {
interface NewsDetailsSectionProps {
post: BlogPost;
}
export default function NewsDetailsSection({ post }: NewsDetailsSectionProps) {
return (
<section className="news-standard-section section-padding fix">
<div className="container">
<div className="news-details-wrapper">
<div className="row g-4">
<NewsDetailsContent />
<NewsDetailsContent post={post} />
<Sidebar />
</div>
</div>