UNPKG

@aliretail/react-materials-components

Version:
33 lines (32 loc) 845 B
import * as React from 'react'; import * as PropTypes from 'prop-types'; interface IDataSource { text: string; type: string; onClick: () => void; } declare type TProps = typeof SuccessDialog.defaultProps & { visible: boolean; title: string; message?: string; dataSource: IDataSource[]; }; interface TState { } declare class SuccessDialog extends React.Component<TProps, TState> { static propTypes: { visible: PropTypes.Requireable<boolean>; title: PropTypes.Requireable<string>; message: PropTypes.Requireable<string>; dataSource: PropTypes.Requireable<any[]>; }; static defaultProps: { visible: boolean; title: string; message: string; dataSource: any[]; }; state: TState; render(): JSX.Element; } export default SuccessDialog;