UNPKG

@shopify/app-bridge-host

Version:

App Bridge Host contains components and middleware to be consumed by the app's host, as well as the host itself. The middleware and `Frame` component are responsible for facilitating communication between the client and host, and used to act on actions se

22 lines (21 loc) 912 B
import React from 'react'; import { WithFeature } from '../store/reducers/embeddedApp/modal'; import { ComponentProps } from '../types'; import { FrameProps } from '../Frame'; interface ExtraProps extends Pick<FrameProps, 'onInit'> { [key: string]: any; } type ComposedProps = WithFeature & ExtraProps; /** * Renders a Polaris Modal with the Context set to `Modal` * When the `location` is defined, renders Frame component as the modal content * @public * @requires HostContext * */ export declare function Modal(props: ComposedProps): React.JSX.Element | null; /** * The Modal feature with its reducer, actions and UI component * @public * */ declare const _default: import("@shopify/react-compose").ReactComponent<ComponentProps & ExtraProps> & import("@shopify/useful-types").NonReactStatics<import("@shopify/react-compose").ReactComponent<ComposedProps> & typeof Modal>; export default _default;