"use client"; import { memo } from "react"; import { cn } from "@/lib/utils"; type IndexCardProps = { label: string; value: string; delta?: string; positive?: boolean; }; ; type IndexCardRowProps = { cards: IndexCardProps[]; className?: string; }; const IndexCard = memo(function IndexCard({ label, value, delta, positive = true, }: IndexCardProps) { return (

{label}

{value}

{delta ? (

{delta}

) : null}
); }); export function IndexCardRow({ cards, className }: IndexCardRowProps) { return (
{cards.map((card, index) => ( ))}
); }