import { Component } from 'react';
import { CSSTransition } from 'react-transition-group';
import Portal from '../portal';
import Icon from '../icon';
const NotifyTransition = ({ children, ...props }) => (
{children}
);
const ICON_TYPE = {
success: 'check-circle',
warn: 'warning',
error: 'close-circle',
info: 'info-circle',
};
export interface INotifyContentProps {
text?: React.ReactNode;
close(): void;
selector: string | HTMLElement;
status: string;
isIn?: boolean;
}
export default class NotifyContent extends Component {
static defaultProps = {
text: '',
status: '',
className: '',
};
onExited = () => {
this.props.close();
};
render() {
const { text, status, selector, isIn } = this.props;
return (
);
}
}