UNPKG

1.25 kBTypeScriptView Raw
1import React from 'react';
2import { FrameProps } from '../Frame';
3import { RouterContext } from '../HostProvider';
4import { ComponentProps } from '../types';
5import { WithFeature } from '../store/reducers/embeddedApp/navigation';
6interface ExtraProps extends Pick<FrameProps, 'onInit'> {
7 onLocationUpdate(location: RouterContext['location']): void;
8 [key: string]: any;
9}
10declare type ComposedProps = WithFeature & ExtraProps;
11/**
12 * Renders a Frame component with the Context set to `Main`
13 * Handles updating the iframe url for all app-related Navigation actions
14 * @public
15 * @requires RouterContext
16 * @requires HostContext
17 * */
18export declare function MainFrame(props: ComposedProps): JSX.Element;
19declare const _default: (React.ComponentClass<ComponentProps & ExtraProps, any> & Pick<(React.ComponentClass<ComposedProps, any> & typeof MainFrame) | (React.FunctionComponent<ComposedProps> & typeof MainFrame), "defaultProps">) | (React.FunctionComponent<ComponentProps & ExtraProps> & Pick<(React.ComponentClass<ComposedProps, any> & typeof MainFrame) | (React.FunctionComponent<ComposedProps> & typeof MainFrame), "defaultProps">);
20/**
21 * The MainFrame component with the Navigation feature
22 * @public
23 * */
24export default _default;