import { type Recipe } from "../types/Recipe" interface CookbookRecipeTileProps { recipe: Recipe; handleDelete: (id: number | undefined) => void; } function CookbookRecipeTile({ recipe, handleDelete }: CookbookRecipeTileProps) { const deleteHandler = () => { if (handleDelete) { handleDelete(recipe.id); } }; return (
); } export default CookbookRecipeTile;