@open-tender/ui
Version:
A component library for use with the Open Tender web app
17 lines (16 loc) • 659 B
TypeScript
import { Cart as CartType } from '@open-tender/types';
import { CartItem as CartItemType } from '@open-tender/types';
import React, { ReactNode } from 'react';
import { Handlers, ScreenConfig } from '../types';
export interface CartProps {
config: ScreenConfig;
handlers: Handlers;
cart: CartType;
count: number;
total: number;
isOpen: boolean;
renderCartItem: (item: CartItemType, index: number, isLast: boolean) => ReactNode;
renderCartUpsells?: () => ReactNode;
}
declare const Cart: ({ config, handlers, cart, count, total, isOpen, renderCartItem, renderCartUpsells }: CartProps) => React.JSX.Element;
export default Cart;