import React from 'react'; import { Card } from './Card'; import { Box } from './primitives/Box'; import { Text } from './Text'; export interface GoalCardProps { title: string; current: number; target: number; unit: string; icon: string; } export const GoalCard = ({ title, current, target, unit, icon }: GoalCardProps) => { const percentage = Math.min(Math.max((current / target) * 100, 0), 100); return ( {icon} {title} {unit} Progress {Math.round(percentage)}% {current} / {target} {unit} ); };