@commercelayer/react-components
Version:
The Official Commerce Layer React Components
13 lines (12 loc) • 490 B
TypeScript
import { type ReactNode, type JSX } from 'react';
import type { ChildrenFunction } from '../../typings/index';
interface ChildrenProps extends Omit<Props, 'children'> {
handleClick: () => void;
}
interface Props extends Omit<JSX.IntrinsicElements['button'], 'children'> {
children?: ChildrenFunction<ChildrenProps>;
label?: string | ReactNode;
onClick?: () => void;
}
export declare function SaveCustomerButton(props: Props): JSX.Element;
export default SaveCustomerButton;