import React from 'react'; import { IonProgressBar } from '@ionic/react'; interface StatsHabitCardProps { name: string; color: string; completedCount: number; totalDays: number; streak: number; } const StatsHabitCard: React.FC = ({ name, color, completedCount, totalDays, streak, }) => { const ratio = totalDays > 0 ? completedCount / totalDays : 0; const percentage = Math.round(ratio * 100); return (

{name}

{completedCount} of {totalDays} days completed

{streak}🔥
{percentage}% consistency Current streak {streak}
); }; export default StatsHabitCard;