import { ToastContainer as ToastifyContainer } from 'react-toastify';

import type { ToastContainerProps } from 'react-toastify';

const ToastContainer = (props: ToastContainerProps) => (
	<ToastifyContainer {...props} />
);

ToastContainer.defaultProps = {
	autoClose: 5000,
	closeOnClick: true,
	draggable: true,
	hideProgressBar: false,
	newestOnTop: false,
	pauseOnFocusLoss: true,
	pauseOnHover: true,
	position: 'top-center',
	rtl: false,
};

export default ToastContainer;
