@commercelayer/react-components
Version:
The Official Commerce Layer React Components
21 lines (20 loc) • 555 B
TypeScript
import { type JSX } from 'react';
import type { BaseAmountComponent } from '../../typings/index';
type Props = BaseAmountComponent & {
/**
* The label to show when the price is free
*/
labelFreeOver?: string;
/**
* The label to show when the price is external
*/
labelExternal?: string;
} & ({
type?: 'amount';
base?: 'freeOver';
} | {
type?: 'amount' | 'amountForShipment';
base?: 'price';
});
export declare function ShippingMethodPrice(props: Props): JSX.Element;
export default ShippingMethodPrice;