"use client"; import { Button } from "@heroui/react"; import BorderedButton from "@/components/common/BorderedButton"; import { useApp } from "@/contexts/AppContext"; interface EarnOpportunityCardProps { pointsLabel: string; title: string; subtitle: string; metricLabel: string; metricValue: string; buttonText: string; onButtonClick?: () => void; } export default function EarnOpportunityCard({ pointsLabel, title, subtitle, metricLabel, metricValue, buttonText, onButtonClick, }: EarnOpportunityCardProps) { const { t } = useApp(); return (
{/* Top Section - Logo and Points Badge */}
{/* Logo */}
{t("points.logo")}
{/* Points Badge */}
{pointsLabel}
{/* Middle Section - Title and Subtitle */}

{title}

{subtitle}

{/* Bottom Section - Metric and Button */}
{/* Metric */}
{metricLabel} {metricValue}
{/* Button */} {buttonText}
); }