--- // const { ingredients } = Astro.props const { class: className, ingredients } = Astro.props const tableView = true --- {!tableView && (
{ ingredients.map(ing => (

• {ing.quantity} {ing.unit} {ing.name}

)) }
)} {tableView && ( { ingredients.map(ing => ( <> )) }
Quantity Unit Ingredient
{ing.quantity} {ing.unit} {ing.name}
)}