UNPKG

@commercelayer/react-components

Version:
39 lines (38 loc) 1.15 kB
import { type JSX } from 'react'; import type { ChildrenFunction } from '../../typings/index'; interface ChildrenProps extends Omit<Props, 'children'> { /** * The link href */ href: string; /** * The link status */ disabled: boolean; } interface Props extends Omit<JSX.IntrinsicElements['a'], 'children'> { /** * A render function to render your own custom component */ children?: ChildrenFunction<ChildrenProps>; /** * The label of the link */ label?: string | JSX.Element; /** * The domain of your forked application */ customDomain?: string; } /** * This component generates a link to the hosted mfe-my-account application. * In this way you can connect your shop application with our hosted micro-frontend and let your customers manage their account with zero code. * * <span title="Requirement" type="warning"> * Must be a child of the `<CustomerContainer>` component. <br /> * </span> * * @link https://github.com/commercelayer/mfe-my-account */ export declare function MyAccountLink(props: Props): JSX.Element; export default MyAccountLink;