Replace entire repo content with correct code from /root/shahikitchen-website/
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
* Extended dish detail data for the menu detail modal.
|
||||
* All sweets category items use the detail modal on /menu.
|
||||
*/
|
||||
|
||||
/** Category id whose items show the detail modal instead of inline description */
|
||||
export const DETAIL_MODAL_CATEGORY_ID = 'sweets';
|
||||
|
||||
/** Per-dish ingredient lists shown in the detail modal (add as provided) */
|
||||
export const dishIngredients: Record<string, string[]> = {
|
||||
'badam-barfi': [
|
||||
'Almonds (badam)',
|
||||
'Full-cream milk',
|
||||
'Sugar',
|
||||
'Ghee',
|
||||
'Cardamom',
|
||||
],
|
||||
};
|
||||
|
||||
export function hasDishDetailModal(_dishId: string, categoryId?: string): boolean {
|
||||
return categoryId === DETAIL_MODAL_CATEGORY_ID;
|
||||
}
|
||||
|
||||
export function getDishIngredients(dishId: string): string[] {
|
||||
return dishIngredients[dishId] ?? [];
|
||||
}
|
||||
Reference in New Issue
Block a user