import { Link } from "react-router-dom"; import { clsx } from "clsx"; import type { DietMethod } from "@/types/method"; import { CATEGORIES } from "@/types/method"; import { Badge } from "@/components/Badge"; import { DifficultyBadge } from "@/components/DifficultyBadge"; import { EffectivenessIndicator } from "@/components/EffectivenessIndicator"; import { BookmarkButton } from "@/components/BookmarkButton"; interface MethodCardProps { method: DietMethod; isBookmarked: boolean; onToggleBookmark: (id: string) => void; } export function MethodCard({ method, isBookmarked, onToggleBookmark }: MethodCardProps) { const category = CATEGORIES[method.category]; return (
onToggleBookmark(method.id)} />
{category.label}

{method.title}

{method.shortDescription}

{method.timeframe}
); }