"use client"; import React from "react"; const ContentContainer = ({ post, width = "200px", size = "responsive" }) => { // Get the corresponding icon based on the same logic as background images const getIconImage = (slug) => { const icons = [ "/assets/Content_Thumbnail/Icon_1.svg", "/assets/Content_Thumbnail/Icon_2.svg", "/assets/Content_Thumbnail/Icon_3.svg", ]; if (!slug) return icons[0]; // Use the same hash logic as background images to ensure matching const hash = slug.split("").reduce((a, b) => { a = (a << 5) - a + b.charCodeAt(0); return a & a; }, 0); return icons[Math.abs(hash) % icons.length]; }; const iconImage = getIconImage(post.slug); // Choose styling based on size prop const containerClasses = size === "xs" ? "relative z-20 h-full flex flex-col gap-[var(--measures-spacing-012)]" : "relative z-20 h-full flex flex-col gap-[var(--measures-spacing-012)] sm:gap-[var(--measures-spacing-016)] md:gap-[18px] lg:gap-[var(--measures-spacing-024)]"; return (
{post.frontmatter.description}