import { getRecipePlaceholder } from "@/lib/recipe-placeholder"; import { cn } from "@/lib/utils"; /** Gradient + food/drink icon shown in place of a cover photo — deterministic per recipe id, so it stays stable across renders instead of flickering between icons/colors. */ export function RecipeCoverPlaceholder({ recipe, className, iconClassName, }: { recipe: { id: string; recipeType?: "dish" | "drink"; coverIcon?: string | null; coverColor?: string | null }; className?: string; iconClassName?: string; }) { const { gradient, Icon } = getRecipePlaceholder(recipe); return (