"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"; interface StackCardProps { Icon: LucideIcon; title: string; subtitle: string; detail: string; iconClassName?: string; titleClassName?: string; subtitleClassName?: string; detailClassName?: string; } interface Bento3DStackCardProps extends StackCardProps { className?: string; useInvertedBackground: InvertedBackground; } const StackCard = memo(({ className = "", Icon, title, subtitle, detail, iconClassName = "", titleClassName = "", subtitleClassName = "", detailClassName = "", useInvertedBackground, }: Bento3DStackCardProps) => { const theme = useTheme(); const shouldUseLightText = shouldUseInvertedText(useInvertedBackground, theme.cardStyle); return (
{title}
{subtitle}
{detail}