Replace entire repo content with correct code from /root/shahikitchen-website/

This commit is contained in:
root
2026-06-29 16:22:09 +00:00
parent 57cc67d2d3
commit 50e3a34895
723 changed files with 20055 additions and 26101 deletions
+19
View File
@@ -0,0 +1,19 @@
import type { OrderLine, NewOrderLine } from '../shared/order-line';
export type CartItem = OrderLine;
export type NewCartItem = NewOrderLine;
export interface CartState {
items: CartItem[];
isOpen: boolean;
}
export type CartAction =
| { type: 'ADD_ITEM'; payload: NewCartItem }
| { type: 'REMOVE_ITEM'; payload: string }
| { type: 'UPDATE_QUANTITY'; payload: { id: string; quantity: number } }
| { type: 'CLEAR_CART' }
| { type: 'TOGGLE_CART' }
| { type: 'OPEN_CART' }
| { type: 'CLOSE_CART' }
| { type: 'RESTORE_ITEMS'; payload: CartItem[] };