openreplay/frontend/app/components/ui/Notification/Notification.js
Shekar Siri 2ed5cac986
Webpack upgrade and dependency cleanup (#523)
* change(ui) - webpack update
* change(ui) - api optimize and other fixes
2022-06-03 16:47:38 +02:00

18 lines
502 B
JavaScript

import React from 'react';
import { ToastContainer, Flip } from 'react-toastify';
import styles from './notification.module.css'
export default ({ transition = Flip, position = 'bottom-right', autoClose = 3000, ...props }) => (
<ToastContainer
hideProgressBar
position={ position }
draggable
pauseOnHover
transition={ transition }
autoClose={ autoClose }
className={ styles.container }
toastClassName={ styles.toast }
closeButton={false}
{ ...props }
/>
);