UNPKG

@commercelayer/react-components

Version:
26 lines (25 loc) 661 B
import type { DefaultChildrenType } from '../../typings/globals'; import type { JSX } from "react"; interface Props { /** * Accept a React node as children. */ children: DefaultChildrenType; /** * The access token to authenticate the API calls. */ accessToken: string; /** * The endpoint to make the API calls. e.g. https://yourdomain.commercelayer.io */ endpoint?: string; /** * The domain to make the API calls. e.g. commercelayer.io */ domain?: string; } /** * CommerceLayer component */ export declare function CommerceLayer(props: Props): JSX.Element; export default CommerceLayer;