import Link from "next/link"; import type { BlogPost } from "@/types/blog"; import { editorjsToHtml, getCmsImageUrl } from "@/utils"; import { toSlug } from "@/utils/slugify"; import CommentsSection from "./CommentsSection"; interface NewsDetailsContentProps { post: BlogPost; } export default function NewsDetailsContent({ post }: NewsDetailsContentProps) { // Get comments from post (already included in API response) const postComments = post.comments || []; // Get base URL for EditorJS images const baseUrl = process.env.NEXT_PUBLIC_API_URL || "http://localhost:3001"; // Convert EditorJS content to HTML const renderContent = () => { const html = editorjsToHtml(post.content, baseUrl); return { __html: html }; }; // Convert EditorJS contentAfterQuote to HTML const renderContentAfterQuote = () => { const html = editorjsToHtml(post.contentAfterQuote, baseUrl); return { __html: html }; }; return (