@awsui/components-react
Version:
On July 19th, 2022, we launched [Cloudscape Design System](https://cloudscape.design). Cloudscape is an evolution of AWS-UI. It consists of user interface guidelines, front-end components, design resources, and development tools for building intuitive, en
27 lines • 1.06 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;
};
export default function ChartStatusContainer({ statusType, errorText, loadingText, recoveryText, noMatch, empty, onRecoveryClick, isNoMatch, isEmpty, showChart, }: ChartStatusContainerProps): JSX.Element;
export {};
//# sourceMappingURL=index.d.ts.map