UNPKG

ontime-components

Version:
18 lines (17 loc) 555 B
import { PureComponent } from 'react'; import { IProps } from '../../libs/interfaces'; import { TFuncClick } from '../../libs/types'; declare type TType = 'default' | 'success' | 'danger' | 'warning'; interface INoticeProps extends IProps { type?: TType; onClose?: Function; } interface INoticeDefProps { type: TType; } declare class Notice extends PureComponent<INoticeProps & INoticeDefProps> { static defaultProps: INoticeDefProps; onClose: TFuncClick; render(): JSX.Element; } export { Notice, INoticeProps, INoticeDefProps };