// Cart drawer function CartDrawer({ open, onClose, items, onQty, onRemove }) { const subtotal = items.reduce((s, it) => s + it.price * it.qty, 0); return ( <>
); } function Toast({ show, msg }) { return (
{msg}
); } Object.assign(window, { CartDrawer, Toast });