planmymeal/app/lib/recipes/ing.ts
Cayden Schwechten c19b910c36 init
2026-10-31 20:44:29 -05:00

9 lines
304 B
TypeScript

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,
});