@automattic/shopping-cart
Version:
A library to use the WordPress.com shopping cart.
7 lines • 486 B
TypeScript
import type { WithShoppingCartProps, CartKey } from './types';
import type { ComponentType } from 'react';
export type AdditionalCartKeyProp = {
cartKey?: CartKey;
};
export default function withShoppingCart<P>(Component: ComponentType<P & AdditionalCartKeyProp>, mapPropsToCartKey?: (props: P) => CartKey | undefined): (props: Omit<P & AdditionalCartKeyProp, keyof WithShoppingCartProps>) => import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=with-shopping-cart.d.ts.map