"use client"; import { getAssetPath } from "../../lib/assetUtils"; import ContentContainer from "./ContentContainer"; export default function ContentBanner({ post }) { // Get article-specific horizontal thumbnail (small) and banner (md+) const getBackgroundImage = (post) => { if (post.frontmatter?.thumbnail?.horizontal) { return `/content/blog/${post.frontmatter.thumbnail.horizontal}`; } // Fallback to default image return getAssetPath("assets/Content_Banner.svg"); }; const getBannerImageMd = (post) => { // Use banner.horizontal when provided; fallback to default banner asset if (post.frontmatter?.banner?.horizontal) { return `/content/blog/${post.frontmatter.banner.horizontal}`; } return getAssetPath("assets/Content_Banner_2.svg"); }; const backgroundImage = getBackgroundImage(post); const bannerImageMd = getBannerImageMd(post); return (