1import { useToasts } from 'react-toast-notifications'
2
3export const ToastDemo = ({ content }) => {
4 const { addToast } = useToasts()
5 return (
6 <Button onClick={() => addToast(content, {
7 appearance: 'warning',
8 autoDismiss: true,
9 placement: 'top-center'
10 })}>
11 Add Toast
12 </Button>
13 )
14}
15