"use client"; import { memo } from "react"; import { cls, shouldUseInvertedText } from "@/lib/utils"; import { useTheme } from "@/providers/themeProvider/ThemeProvider"; import type { LucideIcon } from "lucide-react"; import type { InvertedBackground } from "@/providers/themeProvider/config/constants"; type BentoInfoItem = { icon: LucideIcon; label: string; value: string; }; interface BentoIconInfoCardsProps { items: BentoInfoItem[]; useInvertedBackground: InvertedBackground; className?: string; cardClassName?: string; iconWrapperClassName?: string; iconClassName?: string; labelClassName?: string; valueClassName?: string; } const BentoIconInfoCards = ({ items, useInvertedBackground, className = "", cardClassName = "", iconWrapperClassName = "", iconClassName = "", labelClassName = "", valueClassName = "", }: BentoIconInfoCardsProps) => { const theme = useTheme(); const shouldUseLightText = shouldUseInvertedText(useInvertedBackground, theme.cardStyle); const duplicatedItems = [...items, ...items]; return (
{item.label}
{item.value}