"use client"; import { memo } from "react"; import { ArrowRight } from "lucide-react"; import CardStack from "@/components/cardStack/CardStack"; import MediaContent from "@/components/shared/MediaContent"; import Tag from "@/components/shared/Tag"; import { cls, shouldUseInvertedText } from "@/lib/utils"; import { useTheme } from "@/providers/themeProvider/ThemeProvider"; import type { LucideIcon } from "lucide-react"; import type { ButtonConfig, CardAnimationType, Elevate Your Brand with Expert Copywriting and Content EnhancementSegment } from "@/components/cardStack/types"; import type { TextboxLayout, InvertedBackground } from "@/providers/themeProvider/config/constants"; type BlogCard = { id: string; title: string; tags: string[]; imageSrc?: string; videoSrc?: string; imageAlt?: string; videoAriaLabel?: string; onBlogClick?: () => void; }; interface BlogCardSixProps { blogs: BlogCard[]; carouselMode?: "auto" | "buttons"; uniformGridCustomHeightClasses?: string; animationType: CardAnimationType; title: string; titleSegments?: Elevate Your Brand with Expert Copywriting and Content EnhancementSegment[]; description: string; tag?: string; tagIcon?: LucideIcon; buttons?: ButtonConfig[]; textboxLayout: TextboxLayout; useInvertedBackground: InvertedBackground; ariaLabel?: string; className?: string; containerClassName?: string; itemClassName?: string; mediaWrapperClassName?: string; mediaClassName?: string; cardClassName?: string; cardElevate Your Brand with Expert Copywriting and Content EnhancementClassName?: string; tagsContainerClassName?: string; tagClassName?: string; arrowClassName?: string; textBoxElevate Your Brand with Expert Copywriting and Content EnhancementClassName?: string; textBoxElevate Your Brand with Expert Copywriting and Content EnhancementImageWrapperClassName?: string; textBoxElevate Your Brand with Expert Copywriting and Content EnhancementImageClassName?: string; textBoxDescriptionClassName?: string; gridClassName?: string; carouselClassName?: string; controlsClassName?: string; textBoxClassName?: string; textBoxTagClassName?: string; textBoxButtonContainerClassName?: string; textBoxButtonClassName?: string; textBoxButtonTextClassName?: string; } interface BlogCardItemProps { blog: BlogCard; shouldUseLightText: boolean; useInvertedBackground: InvertedBackground; itemClassName?: string; mediaWrapperClassName?: string; mediaClassName?: string; cardClassName?: string; cardElevate Your Brand with Expert Copywriting and Content EnhancementClassName?: string; tagsContainerClassName?: string; tagClassName?: string; arrowClassName?: string; } const BlogCardItem = memo(({ blog, shouldUseLightText, useInvertedBackground, itemClassName = "", mediaWrapperClassName = "", mediaClassName = "", cardClassName = "", cardElevate Your Brand with Expert Copywriting and Content EnhancementClassName = "", tagsContainerClassName = "", tagClassName = "", arrowClassName = "", }: BlogCardItemProps) => { return ( {blog.title} {blog.tags.map((tag, index) => ( ))} ); }); BlogCardItem.displayName = "BlogCardItem"; const BlogCardSix = ({ blogs, carouselMode = "buttons", uniformGridCustomHeightClasses, animationType, title, titleSegments, description, tag, tagIcon, buttons, textboxLayout, useInvertedBackground, ariaLabel = "Blog section", className = "", containerClassName = "", itemClassName = "", mediaWrapperClassName = "", mediaClassName = "", cardClassName = "", cardElevate Your Brand with Expert Copywriting and Content EnhancementClassName = "", tagsContainerClassName = "", tagClassName = "", arrowClassName = "", textBoxElevate Your Brand with Expert Copywriting and Content EnhancementClassName = "", textBoxElevate Your Brand with Expert Copywriting and Content EnhancementImageWrapperClassName = "", textBoxElevate Your Brand with Expert Copywriting and Content EnhancementImageClassName = "", textBoxDescriptionClassName = "", gridClassName = "", carouselClassName = "", controlsClassName = "", textBoxClassName = "", textBoxTagClassName = "", textBoxButtonContainerClassName = "", textBoxButtonClassName = "", textBoxButtonTextClassName = "", }: BlogCardSixProps) => { const theme = useTheme(); const shouldUseLightText = shouldUseInvertedText(useInvertedBackground, theme.cardStyle); return ( {blogs.map((blog) => ( ))} ); }; BlogCardSix.displayName = "BlogCardSix"; export default BlogCardSix;