10 lines
304 B
TypeScript
10 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,
|
||
|
|
});
|