"use client"; import { useTranslations } from "next-intl"; import { Snowflake, Refrigerator, ChefHat } from "lucide-react"; type Dish = { id: string; name: string; description: string | null; fridgeDays: number; freezerFriendly: boolean; freezerNote: string | null; dayOfInstructions: string; }; export function BatchCookDishes({ dishes }: { dishes: Dish[] }) { const t = useTranslations("recipe"); return (

{t("batchCookDishesTitle")}

{dishes.map((dish) => (

{dish.name}

{dish.description &&

{dish.description}

}
{t("batchCookFridgeDays", { days: dish.fridgeDays })} {dish.freezerFriendly && ( {t("batchCookFreezerFriendly")} )}
{dish.freezerNote && (

{dish.freezerNote}

)}

{t("batchCookDayOf")}

{dish.dayOfInstructions}

))}
); }