init
This commit is contained in:
commit
c19b910c36
80 changed files with 16134 additions and 0 deletions
9
app/lib/recipes/ing.ts
Normal file
9
app/lib/recipes/ing.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
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,
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue