import * as React from "react" import { cn } from "../ui/utils" import { TrendingUp, TrendingDown, type LucideIcon } from "lucide-react" interface HeroCardProps extends React.ComponentProps<"div"> { icon: LucideIcon label: string value: string | number unit?: string trend?: { value: string direction: "up" | "down" label?: string } backgroundElement?: React.ReactNode watermarkIcon?: LucideIcon } function HeroCard({ icon: Icon, label, value, unit, trend, backgroundElement, watermarkIcon: WatermarkIcon, className, ...props }: HeroCardProps) { return (
{backgroundElement && (
{backgroundElement}
)} {WatermarkIcon && (
)}

{label}

{value} {unit && {unit}}

{trend && (
{trend.value} {trend.direction === "up" ? ( ) : ( )}
{trend.label && ( {trend.label} )}
)}
) } export { HeroCard } export type { HeroCardProps }