import React from 'react'; import { IonButton, IonIcon, IonSpinner } from '@ionic/react'; import { checkmarkOutline, ellipseOutline, flameOutline, trashOutline, } from 'ionicons/icons'; import type { Tables } from '../database.types'; interface HabitCardProps { habit: Tables<'habits'>; completedToday: boolean; currentStreak: number; completionRate: number; onToggle: () => void; onDelete: () => void; busy: boolean; } const HabitCard: React.FC = ({ habit, completedToday, currentStreak, completionRate, onToggle, onDelete, busy, }) => { return (

{habit.name}

{habit.target_description || 'Show up today and keep the chain alive.'}

{currentStreak} streak {completionRate}% this week
); }; export default HabitCard;