import type { Metadata } from "next"; import { db, ingredients, asc } from "@epicure/db"; import { requireFullAdminPage } from "@/lib/require-admin-page"; import { IngredientsManager } from "@/components/admin/ingredients-manager"; export const metadata: Metadata = {}; export default async function AdminIngredientsPage() { await requireFullAdminPage(); const rows = await db.select().from(ingredients).orderBy(asc(ingredients.name)); return (
Canonical ingredients and their name variants (e.g. "sel", "sel fin", "table salt") — lets pantry items and recipe ingredients written differently still be recognized as the same thing. Used by pantry add/edit, can-cook scoring, auto-deduct on cook, and shopping-list pantry-awareness.