@talend/react-containers
Version:
Provide connected components aka containers for @talend/react-cmf based on @talend/react-components.
32 lines (31 loc) • 1.2 kB
TypeScript
/**
* This container show the application's loader & bootstrap the app
* @param {object} props the component props
* @param {boolean} props.loading tell if the app loader should show the loader or the content
* @param {function} props.renderer lets you customise the way we display the loader in the app
* @param {object} props.children react element to show
*/
export function AppLoaderContainer({ loading, renderer, children, ...rest }: {
loading: boolean;
renderer: Function;
children: object;
}): any;
export namespace AppLoaderContainer {
let displayName: string;
namespace propTypes {
let children: PropTypes.Requireable<NonNullable<any[] | PropTypes.ReactElementLike | null | undefined>>;
let loading: PropTypes.Requireable<boolean>;
let renderer: PropTypes.Requireable<(...args: any[]) => any>;
}
}
/**
* calculate the loading attribute with the given props
* @param {object} state the redux state
* @param {object} ownProps the component props
*/
export function mapStateToProps(state: object, ownProps: object): {
loading: boolean;
};
export default connected;
import PropTypes from 'prop-types';
declare const connected: any;