forked from UKSOURCE/hailearning.edu.vn
feat: Refactor blog components and add pagination
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user