import { memo } from "react";
import type { ContentContainerViewProps } from "./ContentContainer.types";
function ContentContainerView({
post,
width,
size,
iconImage,
iconAlt,
showLeadingImage,
containerClasses,
contentGapClasses,
textGapClasses,
titleClasses,
descriptionClasses,
authorClasses,
dateClasses,
formattedDate,
}: ContentContainerViewProps) {
return (
{/* Content Container - gap between icon and text */}
{showLeadingImage ? (
{/* eslint-disable-next-line @next/next/no-img-element */}
) : null}
{/* Text Container */}
{/* Title */}
{post.frontmatter.title}
{/* Description */}
{post.frontmatter.description}
{/* Author Name */}
{post.frontmatter.author}
{/* Date */}
{formattedDate}
);
}
ContentContainerView.displayName = "ContentContainerView";
export default memo(ContentContainerView);