@open-tender/ui
Version:
A component library for use with the Open Tender web app
16 lines (15 loc) • 585 B
TypeScript
import { CartItem as CartItemType } from '@open-tender/types';
import React, { ReactNode } from 'react';
import { Handlers, ScreenConfig } from '../types';
export interface CartItemProps {
config: ScreenConfig;
handlers: Handlers;
item: CartItemType;
isEditable?: boolean;
isLast?: boolean;
renderQuantity: (quantity: number) => ReactNode;
apiUrl: string;
displayCals?: boolean;
}
declare const CartItem: ({ config, handlers, item, isEditable, isLast, renderQuantity, apiUrl, displayCals }: CartItemProps) => React.JSX.Element;
export default CartItem;