@awsui/components-react
Version:
AWS UI is a collection of [React](https://reactjs.org/) components that help create intuitive, responsive, and accessible user experiences for web applications. It is developed by Amazon Web Services (AWS). This work is available under the terms of the [A
27 lines (26 loc) • 1.04 kB
TypeScript
import React from 'react';
import { BaseComponentProps } from '../../base-component';
import { NonCancelableEventHandler } from '../../events';
interface ChartStatusContainerProps extends BaseComponentProps {
statusType: 'loading' | 'finished' | 'error';
empty?: React.ReactNode;
noMatch?: React.ReactNode;
loadingText?: string;
errorText?: string;
recoveryText?: string;
onRecoveryClick?: NonCancelableEventHandler;
isEmpty?: boolean;
isNoMatch?: boolean;
showChart?: boolean;
}
export declare function getChartStatus<T, U>({ externalData, visibleData, statusType }: {
externalData: ReadonlyArray<T>;
visibleData: ReadonlyArray<U>;
statusType: 'loading' | 'finished' | 'error';
}): {
isEmpty: boolean;
isNoMatch: boolean;
showChart: boolean;
};
declare const ChartStatusContainer: ({ statusType, errorText, loadingText, recoveryText, noMatch, empty, onRecoveryClick, isNoMatch, isEmpty, showChart }: ChartStatusContainerProps) => JSX.Element;
export default ChartStatusContainer;