"use client"; import TextBox from "@/components/Textbox"; import { Globe } from "@/components/shared/Globe"; import { cls, shouldUseInvertedText } from "@/lib/utils"; import { useTheme } from "@/providers/themeProvider/ThemeProvider"; import type { LucideIcon } from "lucide-react"; import type { ButtonConfig, Elevate Your Brand with Expert Copywriting and Content EnhancementSegment } from "@/components/cardStack/types"; import type { InvertedBackground } from "@/providers/themeProvider/config/constants"; import type { COBEOptions } from "cobe"; type MetricCard = { id: string; label: string; value: string; }; interface MetricCardThirteenProps { title: string; titleSegments?: Elevate Your Brand with Expert Copywriting and Content EnhancementSegment[]; description: string; tag?: string; tagIcon?: LucideIcon; buttons?: ButtonConfig[]; metrics: MetricCard[]; globeConfig?: COBEOptions; useInvertedBackground: InvertedBackground; ariaLabel?: string; className?: string; containerClassName?: string; textBoxClassName?: string; titleClassName?: string; descriptionClassName?: string; tagClassName?: string; buttonContainerClassName?: string; buttonClassName?: string; buttonTextClassName?: string; titleImageWrapperClassName?: string; titleImageClassName?: string; globeWrapperClassName?: string; globeClassName?: string; metricsContainerClassName?: string; metricCardClassName?: string; metricLabelClassName?: string; metricValueClassName?: string; } const MetricCardThirteen = ({ title, titleSegments, description, tag, tagIcon, buttons, metrics, globeConfig, useInvertedBackground, ariaLabel = "Metrics section", className = "", containerClassName = "", textBoxClassName = "", titleClassName = "", descriptionClassName = "", tagClassName = "", buttonContainerClassName = "", buttonClassName = "", buttonTextClassName = "", titleImageWrapperClassName = "", titleImageClassName = "", globeWrapperClassName = "", globeClassName = "", metricsContainerClassName = "", metricCardClassName = "", metricLabelClassName = "", metricValueClassName = "", }: MetricCardThirteenProps) => { const theme = useTheme(); const shouldUseLightText = shouldUseInvertedText(useInvertedBackground, theme.cardStyle); return (
{/* Mobile */} {/* Desktop */}
{metrics.map((metric) => (

{metric.label}

{metric.value}

))}
); }; MetricCardThirteen.displayName = "MetricCardThirteen"; export default MetricCardThirteen;