@commercelayer/react-components
Version:
The Official Commerce Layer React Components
19 lines (18 loc) • 590 B
TypeScript
import type { ChildrenFunction } from '../../typings/index';
import type { Parcel } from '@commercelayer/sdk';
import type { JSX } from "react";
interface ChildrenProps extends Omit<Props, 'children'> {
/**
* Shipments of the current order
*/
parcels?: Parcel[] | null;
/**
* Quantity of the parcels
*/
quantity: number;
}
interface Props extends Omit<JSX.IntrinsicElements['span'], 'children'> {
children?: ChildrenFunction<ChildrenProps>;
}
export declare function ParcelsCount({ children, ...p }: Props): JSX.Element;
export default ParcelsCount;