{(r.kinds[0] || 'receta').toUpperCase()}
{r.public && (
PÚBLICA
)}
{r.name}
{ings.length > 0 && (
{ings.slice(0, 6).map((ing, ii) => {
const ingName = ing.name || ing.ingredient_name;
const priceItem = Array.isArray(ingItems) && ingItems.find(it => it.name === ingName);
return (
)}
{ingName}
{ing.qty} {ing.unit}
{priceItem && priceItem.cost != null ? priceItem.cost.toFixed(2) + '€' : ''}
);
})}
{ings.length > 6 && (
+{ings.length - 6} MÁS
)}
{ings.length} ingredientes{rc?.partial ? '*' : ''}
{rc && rc.total != null && (
{rc.total.toFixed(2)}€
)}