@commercelayer/react-components
Version:
The Official Commerce Layer React Components
15 lines (14 loc) • 610 B
TypeScript
import { type PropsWithoutRef, type JSX } from 'react';
import type { ChildrenFunction } from '../../typings/index';
import type { LineItem } from '@commercelayer/sdk';
interface ChildrenProps extends Omit<Props, 'children'> {
handleRemove: (event: React.MouseEvent<HTMLAnchorElement>) => void;
label?: string;
lineItem?: LineItem;
}
interface Props extends PropsWithoutRef<Omit<JSX.IntrinsicElements['a'], 'children'>> {
children?: ChildrenFunction<ChildrenProps>;
label?: string;
}
export declare function LineItemRemoveLink(props: Props): JSX.Element;
export default LineItemRemoveLink;