UNPKG

@commercelayer/react-components

Version:
19 lines (18 loc) 610 B
import type { ChildrenFunction } from '../../typings/index'; import type { Shipment } from '@commercelayer/sdk'; import type { JSX } from "react"; interface ChildrenProps extends Omit<Props, 'children'> { /** * Shipments of the current order */ shipments?: Shipment[] | null; /** * Quantity of the shipments */ quantity: number; } interface Props extends Omit<JSX.IntrinsicElements['span'], 'children' | 'ref'> { children?: ChildrenFunction<ChildrenProps>; } export declare function ShipmentsCount({ children, ...p }: Props): JSX.Element; export default ShipmentsCount;