"use client"; import { memo } from "react"; import MediaContent from "@/components/shared/MediaContent"; import { cls, shouldUseInvertedText } from "@/lib/utils"; import { useTheme } from "@/providers/themeProvider/ThemeProvider"; type MediaItem = { imageSrc?: string; videoSrc?: string; imageAlt?: string; videoAriaLabel?: string; }; interface MediaGridAboutProps { title: string; description: string; mediaItems: MediaItem[]; imagePosition?: "left" | "right"; useInvertedBackground: "noInvert" | "invertDefault" | "invertCard"; ariaLabel?: string; className?: string; containerClassName?: string; contentCardClassName?: string; titleClassName?: string; descriptionClassName?: string; mediaCardClassName?: string; mediaGridClassName?: string; mediaClassName?: string; } const MediaGridAbout = ({ title, description, mediaItems, imagePosition = "right", useInvertedBackground, ariaLabel = "About section", className = "", containerClassName = "", contentCardClassName = "", titleClassName = "", descriptionClassName = "", mediaCardClassName = "", mediaGridClassName = "", mediaClassName = "", }: MediaGridAboutProps) => { const theme = useTheme(); const shouldUseLightText = shouldUseInvertedText(useInvertedBackground, theme.cardStyle); const contentCard = (
{description}