planmymeal/app/lib/recipes/ing.ts

10 lines
304 B
TypeScript
Raw Normal View History

2026-10-31 20:44:29 -05:00
import type { RecipeIngredient, RecipeUnit } from "@/app/types";
/** Tiny helper so ingredient lists read like a recipe card: ing("rice", 1.5, "cup"). */
export const ing = (itemId: string, amount: number, unit: RecipeUnit, note?: string): RecipeIngredient => ({
itemId,
amount,
unit,
note,
});