UNPKG

@commercelayer/react-components

Version:
15 lines (14 loc) 610 B
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;